| 1 | package nolexerscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.24 testing/" |
| 5 | |
| 6 | "github.com/goccmack/gocc/example/nolexer/parserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/parser`/" |
| 7 | "github.com/goccmack/gocc/example/nolexer/scannerscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/scanner`/" |
| 8 | ) |
| 9 | |
| 10 | func Test1scip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer`/Test1().(t *testingscip-go gomod github.com/golang/go/src go1.24 testing/.Tscip-go gomod github.com/golang/go/src go1.24 testing/T#) { |
| 11 | S := scannerscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/scanner`/.NewStringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/scanner`/NewString().("hiya world") |
| 12 | P := parserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/parser`/.NewParserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/parser`/NewParser().() |
| 13 | if _, e := P.Parsescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/parser`/Parser#Parse().(S); e != nil { |
| 14 | t.Errorscip-go gomod github.com/golang/go/src go1.24 testing/common#Error().(e.Error()) |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | func Test2scip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer`/Test2().(t *testingscip-go gomod github.com/golang/go/src go1.24 testing/.Tscip-go gomod github.com/golang/go/src go1.24 testing/T#) { |
| 19 | S := scannerscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/scanner`/.NewStringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/scanner`/NewString().("hello world") |
| 20 | P := parserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/parser`/.NewParserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/parser`/NewParser().() |
| 21 | if _, e := P.Parsescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/nolexer/parser`/Parser#Parse().(S); e != nil { |
| 22 | t.Errorscip-go gomod github.com/golang/go/src go1.24 testing/common#Error().(e.Error()) |
| 23 | } |
| 24 | } |