Add: RawToken and RawTokenType for token representation
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
package ch.unibas.dmi.dbis.cs108.casono.server.tokenizer;
|
||||||
|
|
||||||
|
public record RawToken(
|
||||||
|
RawTokenType type,
|
||||||
|
String value,
|
||||||
|
int line,
|
||||||
|
int column
|
||||||
|
) {}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package ch.unibas.dmi.dbis.cs108.casono.server.tokenizer;
|
||||||
|
|
||||||
|
public enum RawTokenType {
|
||||||
|
WORD,
|
||||||
|
STRING,
|
||||||
|
SEPARATOR,
|
||||||
|
NEWLINE,
|
||||||
|
EOF
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user