Skip to content

Commit

Permalink
Add the new features to the specification
Browse files Browse the repository at this point in the history
Tune up some of the grammar
  • Loading branch information
skef committed Jun 5, 2024
1 parent 7b07c6b commit df384ca
Show file tree
Hide file tree
Showing 8 changed files with 1,058 additions and 913 deletions.
994 changes: 496 additions & 498 deletions c/addfeatures/hotconv/FeatLexer.cpp

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions c/addfeatures/hotconv/FeatLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ ANON_v : 'anonymous' -> pushMode(Anon) ;
mode Anon;

A_WHITESPACE : [ \t\r\n]+ -> skip ;
A_LABEL : (NAMELABEL | EXTNAME | STRVAL | AXISUNIT | MARK) { anon_tag = getText(); } ;
A_LABEL : (NAMELABEL | EXTNAME | STRVAL | MARK) { anon_tag = getText(); } ;
A_LBRACE : '{' -> mode(AnonContent) ;

mode AnonContent;

A_CLOSE : '\r'? '\n}' [ \t]* (NAMELABEL | EXTNAME | STRVAL | AXISUNIT | MARK) [ \t]* ';' { verify_anon(getText()) }? -> popMode ;
A_CLOSE : '\r'? '\n}' [ \t]* (NAMELABEL | EXTNAME | STRVAL | MARK) [ \t]* ';' { verify_anon(getText()) }? -> popMode ;
A_LINE : '\r'? '\n' ~[\r\n]* ;
2 changes: 1 addition & 1 deletion c/addfeatures/hotconv/FeatLexer.interp

Large diffs are not rendered by default.

583 changes: 289 additions & 294 deletions c/addfeatures/hotconv/FeatParser.cpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion c/addfeatures/hotconv/FeatParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ label:
;

tag:
NAMELABEL | EXTNAME | STRVAL | AXISUNIT | MARK // MARK included for "feature mark"
NAMELABEL | EXTNAME | STRVAL | MARK // MARK included for "feature mark"
;

fixedNum:
Expand Down
1 change: 0 additions & 1 deletion c/addfeatures/hotconv/FeatParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,6 @@ class FeatParser : public antlr4::Parser {
antlr4::tree::TerminalNode *NAMELABEL();
antlr4::tree::TerminalNode *EXTNAME();
antlr4::tree::TerminalNode *STRVAL();
antlr4::tree::TerminalNode *AXISUNIT();
antlr4::tree::TerminalNode *MARK();


Expand Down
2 changes: 1 addition & 1 deletion c/addfeatures/hotconv/FeatParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit df384ca

Please sign in to comment.