blob: f574394f73d65e4bc50abfa50b7023a74a0a34fb (
plain)
1
2
3
4
5
6
7
8
9
10
|
package no.eliashaugsbakk.kompilator.tokenization;
public enum LexerState {
NORMAL, // reading regular tokens
IN_STRING, // inside a string (after ")
IN_WORD, // reading a keyword or identifier
IN_TYPE, // reading a type (i32, streng, ...)
IN_SINGLE_LINE_COMMENT, // reading a single line comment
IN_MULTI_LINE_COMMENT, // reading a multi line comment
}
|