genlex.ha (283B)
1 // A function that will consume some amount of the lexer, or return invalid 2 export type consumer = fn(_: *lexer) (token | invalid); 3 4 // A token item in the lexer, used to control the behaviour of the lexer 5 export type lexItem = struct { 6 ty: types, 7 f: *consumer, 8 nexts: []types 9 };