| 1 | // Code generated by gocc; DO NOT EDIT. |
| 2 | |
| 3 | package parserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/ |
| 4 | |
| 5 | import ( |
| 6 | "fmtscip-go gomod github.com/golang/go/src go1.24 fmt/" |
| 7 | ) |
| 8 | |
| 9 | type actionscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/action# interface { |
| 10 | actscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/action#act.() |
| 11 | Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/action#String.() string |
| 12 | } |
| 13 | |
| 14 | type ( |
| 15 | acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/accept# bool |
| 16 | shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/shift# int // value is next state index |
| 17 | reducescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/reduce# int // value is production index |
| 18 | ) |
| 19 | |
| 20 | func (this acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/accept#) actscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/accept#act().() {} |
| 21 | func (this shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/shift#) actscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/shift#act().() {} |
| 22 | func (this reducescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/reduce#) actscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/reduce#act().() {} |
| 23 | |
| 24 | func (this acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/accept#) Equalscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/accept#Equal().(that actionscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/action#) bool { |
| 25 | if _, ok := that.(acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/accept#); ok { |
| 26 | return true |
| 27 | } |
| 28 | return false |
| 29 | } |
| 30 | |
| 31 | func (this reducescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/reduce#) Equalscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/reduce#Equal().(that actionscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/action#) bool { |
| 32 | that1, ok := that.(reducescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/reduce#) |
| 33 | if !ok { |
| 34 | return false |
| 35 | } |
| 36 | return this == that1 |
| 37 | } |
| 38 | |
| 39 | func (this shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/shift#) Equalscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/shift#Equal().(that actionscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/action#) bool { |
| 40 | that1, ok := that.(shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/shift#) |
| 41 | if !ok { |
| 42 | return false |
| 43 | } |
| 44 | return this == that1 |
| 45 | } |
| 46 | |
| 47 | func (this acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/accept#) Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/accept#String().() string { return "accept(0)" } |
| 48 | func (this shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/shift#) Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/shift#String().() string { return fmtscip-go gomod github.com/golang/go/src go1.24 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24 fmt/Sprintf().("shift:%d", this) } |
| 49 | func (this reducescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/reduce#) Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/reduce#String().() string { |
| 50 | return fmtscip-go gomod github.com/golang/go/src go1.24 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24 fmt/Sprintf().("reduce:%d(%s)", this, productionsTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/productionsTable.[this].Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/errorrecovery/parser`/ProdTabEntry#String.) |
| 51 | } |