We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2042530 commit beea28fCopy full SHA for beea28f
contrib/nitcc/tests/sav/trans2.input.res
@@ -0,0 +1,20 @@
1
+Start
2
+ s_0
3
4
5
6
7
+ s_1
8
+ b_0
9
+ 'x'@(1:1-1:2)
10
11
+ 'x'@(1:2-1:3)
12
+ c_0
13
+ 'y'@(1:3-1:4)
14
15
+ 'y'@(1:4-1:5)
16
17
+ 'x'@(1:5-1:6)
18
19
+ 'y'@(1:6-1:7)
20
+ Eof@(1:7-1:7)=''
contrib/nitcc/tests/sav/trans_token.input.res
@@ -0,0 +1,4 @@
+ p
+ a@(1:1-1:2)='a'
+ Eof@(1:2-1:2)=''
contrib/nitcc/tests/trans2.input
@@ -0,0 +1 @@
+xxyyxy
contrib/nitcc/tests/trans2.sablecc
@@ -0,0 +1,8 @@
+Grammar trans;
+
+Parser
+s = s b | b;
+a = ;
+b {-> a} = 'x' | c {->};
+c {-> a} = 'y';
contrib/nitcc/tests/trans_token.input
+a
contrib/nitcc/tests/trans_token.sablecc
@@ -0,0 +1,6 @@
+Lexer
+a = 'a';
+p = q;
+q {-> a} = a {->};
0 commit comments