You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
funcmain() {
p:=&Parser{Buffer:"test"}
p.Init()
err:=p.Parse()
iferr!=nil {panic(err)}
}
grammer.peg
package main
type Parser Peg {}
Rule <- ( "t" / "test" ) !.
running peg grammar.go && go run . results in the following error:
panic:
parse error near Unknown (line 1 symbol 1 - line 1 symbol 1):
""
goroutine 1 [running]:
main.main()
/home/binarycat/go/src/github.com/lolbinarycat/peg-bug/main.go:7 +0xb4
exit status 2
This doesn't seem intended, as it makes lots of things much harder to do. If it was intended, then this behavior should be clarified on the readme.
The text was updated successfully, but these errors were encountered:
Yeah, obviously I know that know, but it would have been nice to know that 2 failed projects ago. The only thing in the readme that's remotely close to an explanation of this, is the line "rules are attempted in order". This should be updated to make this more clear. The readme needs to be updated in general, actually.
I have the following files:
main.go:
grammer.peg
running
peg grammar.go && go run .
results in the following error:This doesn't seem intended, as it makes lots of things much harder to do. If it was intended, then this behavior should be clarified on the readme.
The text was updated successfully, but these errors were encountered: