DotGrammar class

The grammar definition of the Graphviz Dot Language.

You probably don't want to use this yourself, see DotParser.parseGraph instead.

You can find the spec here: https://graphviz.org/doc/info/lang.html. Notable deviations from the spec in this library include:

  • Inability to read files with HTML strings.
  • No restrictions on edge_ops (-- or ->) depending on the type of the current graph.

To learn how to use this grammar definition, check out the documentation for GrammarDefinition and the petitparser package.

Constructors

DotGrammar()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

aList() → Parser<AList>
A complete a_list.
alphanumericId() → Parser<String>
attrList() → Parser<AttrList>
A complete attr_list.
attrStmt() → Parser<AttrStatement>
A complete attr_stmt.
build<T>({Function? start, List<Object> arguments = const []}) → Parser<T>
Builds a composite parser from this definition.
inherited
buildFrom<T>(Parser<T> parser) → Parser<T>
Builds a composite parser starting at the specified production.
inherited
compassPt() → Parser<CompassPt>
A complete compass_pt.
digraphToken() → Parser<Token<String>>
The digraph keyword.
edgeOp() → Parser<EdgeOp>
A complete edgeop.
edgeRhs() → Parser<EdgeRhs>
A complete edgeRHS.
edgeStmt() → Parser<EdgeStatement>
A complete edge_stmt.
edgeToken() → Parser<Token<String>>
The edge keyword.
graph() → Parser<Graph>
A complete graph.
graphToken() → Parser<Token<String>>
The graph keyword.
id() → Parser<String>
A valid ID.
multiLineComment() → Parser<void>
newline() → Parser<void>
nodeId() → Parser<NodeId>
A complete node_id.
nodeStmt() → Parser<NodeStatement>
A complete node_stmt.
nodeToken() → Parser<Token<String>>
The node keyword.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numeral() → Parser<String>
port() → Parser<Port>
A complete port.
quotedString() → Parser<String>
singleLineComment() → Parser<void>
start() → Parser<Graph>
The starting production of this definition.
stmt() → Parser<Statement>
A complete stmt.
stmtList() → Parser<StmtList>
A complete stmt_list.
strictToken() → Parser<Token<String>>
The strict keyword.
subgraph() → Parser<Subgraph>
A complete subgraph.
subgraphToken() → Parser<Token<String>>
The subgraph keyword.
token(Object input) → Parser<Token<String>>
toString() String
A string representation of this object.
inherited
whitespaceOrComment() → Parser<void>
whitespaceOrComments() → Parser<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited