Skip to content

Commit 8013002

Browse files
committed
Replace tabs in skeleton.parser
1 parent ad7a545 commit 8013002

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

src/main/java/org/truffleruby/parser/parser/RubyParser.java

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/org/truffleruby/parser/parser/skeleton.parser

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# jay skeleton for Java
1+
# jay skeleton for Java
22

3-
# character in column 1 determines outcome...
4-
# # is a comment
5-
# . is copied
6-
# t is copied as //t if -t is set
7-
# other lines are interpreted to call jay procedures
3+
# character in column 1 determines outcome...
4+
# # is a comment
5+
# . is copied
6+
# t is copied as //t if -t is set
7+
# other lines are interpreted to call jay procedures
88

9-
version Java 1.0 (c) 2002 ats@cs.rit.edu
9+
version Java 1.0 (c) 2002 ats@cs.rit.edu
1010
.
11-
prolog ## %{ ... %} prior to the first %%
11+
prolog ## %{ ... %} prior to the first %%
1212

1313
. // %token constants
14-
tokens public static final int
14+
tokens public static final int
1515
.
1616
. /** number of final state.
1717
. */
18-
yyFinal protected static final int yyFinal =
18+
yyFinal protected static final int yyFinal =
1919
.
2020
. /** parser tables.
2121
. Order is mandated by <i>jay</i>.
@@ -130,16 +130,16 @@ t this.yydebug = (org.truffleruby.parser.parser.YYDebug) ayydebug;
130130
. @return result of the last reduction, if any.
131131
. */
132132
. public Object yyparse (RubyLexer yyLex) {
133-
. if (yyMax <= 0) yyMax = 256; // initial size
134-
. int yyState = 0, yyStates[] = new int[yyMax]; // state stack
135-
. Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack
136-
. int yyToken = -1; // current input
137-
. int yyErrorFlag = 0; // #tokens to shift
133+
. if (yyMax <= 0) yyMax = 256; // initial size
134+
. int yyState = 0, yyStates[] = new int[yyMax]; // state stack
135+
. Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack
136+
. int yyToken = -1; // current input
137+
. int yyErrorFlag = 0; // #tokens to shift
138138
.
139-
local ## %{ ... %} after the first %%
139+
local ## %{ ... %} after the first %%
140140

141141
. yyLoop: for (int yyTop = 0;; ++ yyTop) {
142-
. if (yyTop >= yyStates.length) { // dynamically increase
142+
. if (yyTop >= yyStates.length) { // dynamically increase
143143
. int[] i = new int[yyStates.length+yyMax];
144144
. System.arraycopy(yyStates, 0, i, 0, yyStates.length);
145145
. yyStates = i;
@@ -151,9 +151,9 @@ t this.yydebug = (org.truffleruby.parser.parser.YYDebug) ayydebug;
151151
. yyVals[yyTop] = yyVal;
152152
t if (yydebug != null) yydebug.push(yyState, yyVal);
153153
.
154-
. yyDiscarded: for (;;) { // discarding a token does not change stack
154+
. yyDiscarded: for (;;) { // discarding a token does not change stack
155155
. int yyN;
156-
. if ((yyN = yyDefRed[yyState]) == 0) { // else [default] reduce (yyN)
156+
. if ((yyN = yyDefRed[yyState]) == 0) { // else [default] reduce (yyN)
157157
. if (yyToken < 0) {
158158
.// yyToken = yyLex.advance() ? yyLex.token() : 0;
159159
. yyToken = yyLex.nextToken();
@@ -164,15 +164,15 @@ t yydebug.lex(yyState, yyToken, yyName(yyToken), yyLex.value());
164164
. && yyN < yyTable.length && yyCheck[yyN] == yyToken) {
165165
t if (yydebug != null)
166166
t yydebug.shift(yyState, yyTable[yyN], yyErrorFlag-1);
167-
. yyState = yyTable[yyN]; // shift to yyN
167+
. yyState = yyTable[yyN]; // shift to yyN
168168
. yyVal = yyLex.value();
169169
. yyToken = -1;
170170
. if (yyErrorFlag > 0) -- yyErrorFlag;
171171
. continue yyLoop;
172172
. }
173173
. if ((yyN = yyRindex[yyState]) != 0 && (yyN += yyToken) >= 0
174174
. && yyN < yyTable.length && yyCheck[yyN] == yyToken)
175-
. yyN = yyTable[yyN]; // reduce (yyN)
175+
. yyN = yyTable[yyN]; // reduce (yyN)
176176
. else
177177
. switch (yyErrorFlag) {
178178
.
@@ -206,9 +206,9 @@ t if (yydebug != null) yydebug.reject();
206206
. }
207207
t if (yydebug != null)
208208
t yydebug.discard(yyState, yyToken, yyName(yyToken),
209-
t yyLex.value());
209+
t yyLex.value());
210210
. yyToken = -1;
211-
. continue yyDiscarded; // leave stack alone
211+
. continue yyDiscarded; // leave stack alone
212212
. }
213213
. }
214214
. int yyV = yyTop + 1-yyLen[yyN];
@@ -223,7 +223,7 @@ t yydebug.reduce(yyState, yyStates[yyV-1], yyN, yyRule[yyN], yyLen[yyN]
223223
.// switch (yyN) {
224224
.// ACTIONS_BEGIN
225225

226-
actions ## code from the actions within the grammar
226+
actions ## code from the actions within the grammar
227227

228228
.// ACTIONS_END
229229
.// }
@@ -257,4 +257,4 @@ t if (yydebug != null) yydebug.shift(yyStates[yyTop], yyState);
257257
. }
258258
.
259259
.// ACTION_BODIES
260-
epilog ## text following second %%
260+
epilog ## text following second %%

0 commit comments

Comments
 (0)