go(lex): Try to run parser.
authorsgf <sgf.dma@gmail.com>
Fri, 24 Jun 2022 12:39:03 +0000 (15:39 +0300)
committersgf <sgf.dma@gmail.com>
Fri, 24 Jun 2022 15:38:31 +0000 (18:38 +0300)
lexical-scanning-in-go/lex.go

index 8e047d6..0dc0bb9 100644 (file)
@@ -204,6 +204,10 @@ func (l *lexer) errorf(format string, args ...interface{}) stateFn {
 }
 
 func main() {
-    fmt.Println("Huita")
+    _, ch := lex("huy", "text {{ 1.34e3 }} yet another text")
+    for it := range ch {
+        fmt.Printf("Received %v\n", it)
+    }
+    fmt.Println("End")
 }