summaryrefslogtreecommitdiff
path: root/src/main/java/no/eliashaugsbakk/kompilator/tokenization/LexerState.java
blob: deac76787443df3afea96da2789c3acf75b941a3 (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, string, ...)
  IN_SINGLE_LINE_COMMENT, // reading a single line comment
  IN_MULTI_LINE_COMMENT, // reading a multi line comment
}