projects
/
go.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ec4c6f
)
go(lex): Try to run parser.
author
sgf
<sgf.dma@gmail.com>
Fri, 24 Jun 2022 12:39:03 +0000
(15:39 +0300)
committer
sgf
<sgf.dma@gmail.com>
Fri, 24 Jun 2022 15:38:31 +0000
(18:38 +0300)
lexical-scanning-in-go/lex.go
patch
|
blob
|
history
diff --git
a/lexical-scanning-in-go/lex.go
b/lexical-scanning-in-go/lex.go
index
8e047d6
..
0dc0bb9
100644
(file)
--- a/
lexical-scanning-in-go/lex.go
+++ b/
lexical-scanning-in-go/lex.go
@@
-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")
}