Move tons of stuff into oldstuff/

This commit is contained in:
2020-06-04 09:54:59 -04:00
parent 49038bb8ef
commit aa1345b6ed
213 changed files with 0 additions and 12 deletions

View File

@@ -0,0 +1,31 @@
package main
import (
"fmt"
"log"
"os"
farse "../.."
)
func main() {
fl := farse.New()
err := fl.AddKnown(
"-a", "-n", "-q", "-m",
"--azimuth", "--noodle", "--quince",
"whoop", "fizzle", "flim",
)
if err != nil {
log.Fatal(err)
}
fmt.Println("known:")
for key, tokType := range fl.Known() {
fmt.Printf(" %v: %s\n", key, tokType)
}
fmt.Println("scanned:")
for _, tok := range fl.Scan(os.Args) {
fmt.Printf(" %v: %s\n", tok.Value, tok.Type)
}
}