Parser implementation step 1.5, not complete

This commit is contained in:
Knut Sveidqvist
2025-08-07 15:06:34 +02:00
parent 7b4c0d1752
commit badbd38ec7
2 changed files with 862 additions and 30 deletions

View File

@@ -13,14 +13,11 @@ statement {
DEFAULT | DEFAULT |
INTERPOLATE | INTERPOLATE |
HREF | HREF |
LINK_TARGET | LINK_TARGET |
NODE_STRING |
STR | STR |
LINK | LINK |
PIPE | PIPE |
SEMI | SEMI |
AMP |
Hyphen | Hyphen |
At | At |
SquareStart | SquareEnd | SquareStart | SquareEnd |
@@ -33,7 +30,13 @@ statement {
StadiumStart | StadiumEnd | StadiumStart | StadiumEnd |
TrapStart | TrapEnd | TrapStart | TrapEnd |
InvTrapStart | InvTrapEnd | InvTrapStart | InvTrapEnd |
newline newline |
// Vertex patterns - more specific to avoid conflicts
NODE_STRING AMP NODE_STRING |
NODE_STRING AMP NODE_STRING LINK NODE_STRING |
NODE_STRING LINK NODE_STRING AMP NODE_STRING |
NODE_STRING LINK NODE_STRING LINK NODE_STRING |
NODE_STRING
} }
GRAPH { graphKeyword } GRAPH { graphKeyword }

File diff suppressed because it is too large Load Diff