Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
fja
eval
Commits
8a7298f2
Commit
8a7298f2
authored
Jun 01, 2021
by
Vladimír Štill
Browse files
lib: Add '-' to DFA states, make NFA and DFA consistent
parent
5849914b
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/parsing/DFA.g4
View file @
8a7298f2
...
...
@@ -28,7 +28,7 @@ LEFT_BRACKET : '{';
RIGHT_BRACKET : '}';
COMMA : ',';
FINAL : 'final';
STATE : ([a-zA-Z0-9] | '_' | '\'' | '<' | '>' )+;
STATE : ([a-zA-Z0-9] | '_' |
'-' |
'\'' | '<' | '>' )+;
HASH : '#';
QUOTE : '"';
...
...
lib/parsing/NFA.g4
View file @
8a7298f2
...
...
@@ -31,7 +31,7 @@ RIGHT_BRACKET : '}';
COMMA : ',';
FINAL : ('final');
EPSILON : ('ε' | '\\''e');
STATE : ([a-zA-Z0-9] | '_' | '
\''
)+;
STATE : ([a-zA-Z0-9] | '_' | '
-' | '\'' | '<' | '>'
)+;
HASH : '#';
QUOTE : '"';
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment