Debian Codegraph @

example/calc/parser/action.go

raw symbols SCIP
1 // Code generated by gocc; DO NOT EDIT.
2
3 package parserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/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/calc/parser`/action# interface {
10 actscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/action#act.()
11 Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/action#String.() string
12 }
13
14 type (
15 acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/accept# bool
16 shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/shift# int // value is next state index
17 reducescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/reduce# int // value is production index
18 )
19
20 func (this acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/accept#) actscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/accept#act().() {}
21 func (this shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/shift#) actscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/shift#act().() {}
22 func (this reducescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/reduce#) actscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/reduce#act().() {}
23
24 func (this acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/accept#) Equalscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/accept#Equal().(that actionscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/action#) bool {
25 if _, ok := that.(acceptscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/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/calc/parser`/reduce#) Equalscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/reduce#Equal().(that actionscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/action#) bool {
32 that1, ok := that.(reducescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/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/calc/parser`/shift#) Equalscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/shift#Equal().(that actionscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/action#) bool {
40 that1, ok := that.(shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/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/calc/parser`/accept#) Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/accept#String().() string { return "accept(0)" }
48 func (this shiftscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/shift#) Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/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/calc/parser`/reduce#) Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/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/calc/parser`/productionsTable.[this].Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/calc/parser`/ProdTabEntry#String.)
51 }