summaryrefslogtreecommitdiff
path: root/Homework/cs5300/project-three/data/ParenLexer.tokens
diff options
context:
space:
mode:
Diffstat (limited to 'Homework/cs5300/project-three/data/ParenLexer.tokens')
-rw-r--r--Homework/cs5300/project-three/data/ParenLexer.tokens19
1 files changed, 19 insertions, 0 deletions
diff --git a/Homework/cs5300/project-three/data/ParenLexer.tokens b/Homework/cs5300/project-three/data/ParenLexer.tokens
new file mode 100644
index 0000000..51e5258
--- /dev/null
+++ b/Homework/cs5300/project-three/data/ParenLexer.tokens
@@ -0,0 +1,19 @@
+//
+// DO NOT MODIFY THIS FILE.
+//
+// This file describes the tokens that will be available to the parser
+// that uses the grammar described in Paren.cfg.
+
+lexer grammar ParenLexer;
+
+OPAREN
+ : '('
+ ;
+
+CPAREN
+ : ')'
+ ;
+
+WS
+ : (' ' | '\t' | '\n' | '\r' | '\f')+ -> skip
+ ;