diff options
Diffstat (limited to 'conf/scanner.go')
-rw-r--r-- | conf/scanner.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/conf/scanner.go b/conf/scanner.go index 9bd7a4b..54546aa 100644 --- a/conf/scanner.go +++ b/conf/scanner.go @@ -20,6 +20,14 @@ const ( IfStatement ) +var tokentypestrings []string = []string{Name: "Name", Literal: "Literal", + DeliOpen: "Opening delimiter", DeliClose: "Closing delimiter", + Nothing: "Nothing", IfStatement: "If statement"} + +func (tt tokentype) String() string { + return tokentypestrings[tt] +} + type token struct { Type tokentype Offset int |