Signed-off-by: Jean Privat <jean@pryen.org>
end
end
+redef class Token
+ # The associated text (if any, ie defined in the parser part)
+ var text: nullable String is noautoinit, writable
+end
+
# A state in a finite automaton
class State
# Outgoing transitions
redef class Token
# The associated expression (if any, ie defined in the lexer part)
var nexpr: nullable Nexpr
- # The associated text (if any, ie defined in the parser part)
- var text: nullable String
# Build a NFA according to nexpr or text
# Does not tag it!