Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 546 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 546 Bytes

scanner

To run you can either pass a file, eg: example:

$ go run main.go example
TERM hello %!s(<nil>)
AND AND %!s(<nil>)
TERM world %!s(<nil>)
OR OR %!s(<nil>)
TERM alice %!s(<nil>)
AND AND %!s(<nil>)
NOT NOT %!s(<nil>)
TERM bob %!s(<nil>)
EOF  %!s(<nil>)

Or use it like a REPL:

$ go run main.go
> hello AND world OR alice AND NOT bob
TERM hello %!s(<nil>)
AND AND %!s(<nil>)
TERM world %!s(<nil>)
OR OR %!s(<nil>)
TERM alice %!s(<nil>)
AND AND %!s(<nil>)
NOT NOT %!s(<nil>)
TERM bob %!s(<nil>)
EOF  %!s(<nil>)
>