| 1 | // Code generated by gocc; DO NOT EDIT. |
| 2 | |
| 3 | package parserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ |
| 4 | |
| 5 | import "github.com/goccmack/gocc/example/sr/astscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/ast`/" |
| 6 | |
| 7 | type ( |
| 8 | ProdTabscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTab# [numProductionsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/numProductions.]ProdTabEntryscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry# |
| 9 | ProdTabEntryscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry# struct { |
| 10 | Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#String. string |
| 11 | Idscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Id. string |
| 12 | NTTypescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NTType. int |
| 13 | Indexscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Index. int |
| 14 | NumSymbolsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NumSymbols. int |
| 15 | ReduceFuncscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#ReduceFunc. func([]Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, interface{}) (Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, error) |
| 16 | } |
| 17 | Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib# interface { |
| 18 | } |
| 19 | ) |
| 20 | |
| 21 | var productionsTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable. = ProdTabscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTab#{ |
| 22 | ProdTabEntryscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#{ |
| 23 | Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#String.: `S' : Stmt << >>`, |
| 24 | Idscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Id.: "S'", |
| 25 | NTTypescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NTType.: 0, |
| 26 | Indexscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Index.: 0, |
| 27 | NumSymbolsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NumSymbols.: 1, |
| 28 | ReduceFuncscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#ReduceFunc.: func(Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X. []Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, Cscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:C. interface{}) (Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, error) { |
| 29 | return Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X.[0], nil |
| 30 | }, |
| 31 | }, |
| 32 | ProdTabEntryscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#{ |
| 33 | Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#String.: `Stmt : "if" id "then" Stmt << ast.NewIf(X[1], X[3]), nil >>`, |
| 34 | Idscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Id.: "Stmt", |
| 35 | NTTypescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NTType.: 1, |
| 36 | Indexscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Index.: 1, |
| 37 | NumSymbolsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NumSymbols.: 4, |
| 38 | ReduceFuncscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#ReduceFunc.: func(Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X. []Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, Cscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:C. interface{}) (Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, error) { |
| 39 | return astscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/ast`/.NewIfscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/ast`/NewIf().(Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X.[1], Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X.[3]), nil |
| 40 | }, |
| 41 | }, |
| 42 | ProdTabEntryscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#{ |
| 43 | Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#String.: `Stmt : "if" id "then" Stmt "else" Stmt << ast.NewIfElse(X[1], X[3], X[5]), nil >>`, |
| 44 | Idscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Id.: "Stmt", |
| 45 | NTTypescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NTType.: 1, |
| 46 | Indexscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Index.: 2, |
| 47 | NumSymbolsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NumSymbols.: 6, |
| 48 | ReduceFuncscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#ReduceFunc.: func(Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X. []Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, Cscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:C. interface{}) (Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, error) { |
| 49 | return astscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/ast`/.NewIfElsescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/ast`/NewIfElse().(Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X.[1], Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X.[3], Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X.[5]), nil |
| 50 | }, |
| 51 | }, |
| 52 | ProdTabEntryscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#{ |
| 53 | Stringscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#String.: `Stmt : id << ast.NewIdStmt(X[0]), nil >>`, |
| 54 | Idscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Id.: "Stmt", |
| 55 | NTTypescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NTType.: 1, |
| 56 | Indexscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#Index.: 3, |
| 57 | NumSymbolsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#NumSymbols.: 1, |
| 58 | ReduceFuncscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/ProdTabEntry#ReduceFunc.: func(Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X. []Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, Cscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:C. interface{}) (Attribscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/Attrib#, error) { |
| 59 | return astscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/ast`/.NewIdStmtscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/ast`/NewIdStmt().(Xscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/example/sr/parser`/productionsTable:X.[0]), nil |
| 60 | }, |
| 61 | }, |
| 62 | } |