Skip to content

Latest commit

 

History

History

scanner

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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>)
>