-package org.simantics.scl.compiler.internal.parsing;\r
-\r
-import org.simantics.scl.compiler.errors.Locations;\r
-\r
-\r
-public class Token extends Symbol {\r
- public static final Token[] EMPTY_ARRAY = new Token[0];\r
- \r
- public final String text;\r
- public final int id;\r
- \r
- public Token(int type, long location, String text) {\r
- this.id = type;\r
- this.location = location;\r
- this.text = text;\r
- }\r
- \r
- public Token(int type, int begin, int end, String text) {\r
- this(type, Locations.location(begin, end), text);\r
- }\r
-\r
- @Override\r
- public String toString() {\r
- return text;\r
- }\r
-}\r
+package org.simantics.scl.compiler.internal.parsing;
+
+import org.simantics.scl.compiler.errors.Locations;
+
+
+public class Token extends Symbol {
+ public static final Token[] EMPTY_ARRAY = new Token[0];
+
+ public final String text;
+ public final int id;
+
+ public Token(int type, long location, String text) {
+ this.id = type;
+ this.location = location;
+ this.text = text;
+ }
+
+ public Token(int type, int begin, int end, String text) {
+ this(type, Locations.location(begin, end), text);
+ }
+
+ @Override
+ public String toString() {
+ return text;
+ }
+}