1 2 3 4 5 6 7 8
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, string, ...) }