diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2016-12-25 19:29:55 +0100 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2016-12-25 19:29:55 +0100 |
commit | 5d73aea0169c691b4c96d85353b1dccc5c1199e2 (patch) | |
tree | 997b5e9be454fd205628b585e723b6c80c225a1a /conf/scanner.go | |
parent | 0ad0f3a85145f2b64cf5cbffa57cdb779180b724 (diff) |
Start writing the parser
Diffstat (limited to 'conf/scanner.go')
-rw-r--r-- | conf/scanner.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/scanner.go b/conf/scanner.go index 3d83534..9bd7a4b 100644 --- a/conf/scanner.go +++ b/conf/scanner.go @@ -14,7 +14,8 @@ type tokentype int const ( Name tokentype = iota Literal - Delimiter + DeliOpen + DeliClose Nothing IfStatement ) @@ -27,7 +28,6 @@ type token struct { } type scanner struct { - r io.Reader data []byte offset int curline int |