From: Emden Gansner Date: Wed, 20 Mar 2013 15:00:03 +0000 (-0400) Subject: Change documentation to reflect current state of DOT parser in cgraph: disallow singl... X-Git-Tag: LAST_LIBGRAPH~32^2~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53f1caea307b28db924397bbb5ea46b03d3692c5;p=graphviz Change documentation to reflect current state of DOT parser in cgraph: disallow single name without value --- diff --git a/doc/info/lang.html b/doc/info/lang.html index 439a910a2..3550e1902 100644 --- a/doc/info/lang.html +++ b/doc/info/lang.html @@ -65,7 +65,7 @@ Vertical bars | separate alternatives. a_list : - ID [ '=' ID ] [ ',' ] [ a_list ] + ID '=' ID [ ',' ] [ a_list ] edge_stmt @@ -140,9 +140,6 @@ any embedded comments will be treated as part of the strings. An edgeop is -> in directed graphs and -- in undirected graphs.

-An a_list clause of the form ID is equivalent to -ID=true. -

The language supports C++-style comments: /* */ and //. In addition, a line beginning with a '#' character is considered a line output from a C preprocessor (e.g., # 34 to indicate line 34 ) and discarded. diff --git a/doc/infosrc/grammar b/doc/infosrc/grammar index abdecbdf5..d3d65b145 100644 --- a/doc/infosrc/grammar +++ b/doc/infosrc/grammar @@ -3,7 +3,7 @@ stmt_list = [ stmt [ ';' ] [ stmt_list ] ] stmt = node_stmt | edge_stmt | attr_stmt | ID '=' ID | subgraph attr_stmt = ( T_graph | T_node | T_edge ) attr_list attr_list = '[' [ a_list ] ']' [ attr_list ] -a_list = ID [ '=' ID ] [ ',' ] [ a_list ] +a_list = ID '=' ID [ ',' ] [ a_list ] edge_stmt = ( node_id | subgraph ) edgeRHS [ attr_list ] edgeRHS = edgeop ( node_id | subgraph ) [ edgeRHS ] node_stmt = node_id [ attr_list ] diff --git a/doc/infosrc/lang.2 b/doc/infosrc/lang.2 index 37cd37670..6b01539b2 100644 --- a/doc/infosrc/lang.2 +++ b/doc/infosrc/lang.2 @@ -31,9 +31,6 @@ any embedded comments will be treated as part of the strings. An edgeop is -> in directed graphs and -- in undirected graphs.

-An a_list clause of the form ID is equivalent to -ID=true. -

The language supports C++-style comments: /* */ and //. In addition, a line beginning with a '#' character is considered a line output from a C preprocessor (e.g., # 34 to indicate line 34 ) and discarded.