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