| 1 | //Copyright 2013 Vastech SA (PTY) LTD |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | // This package controls the generation of all parser-related code. |
| 16 | package genscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen`/ |
| 17 | |
| 18 | import ( |
| 19 | "github.com/goccmack/gocc/internal/astscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/" |
| 20 | "github.com/goccmack/gocc/internal/configscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/config`/" |
| 21 | "github.com/goccmack/gocc/internal/parser/gen/golangscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/" |
| 22 | "github.com/goccmack/gocc/internal/parser/lr1/itemsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/lr1/items`/" |
| 23 | "github.com/goccmack/gocc/internal/parser/symbolsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/symbols`/" |
| 24 | "github.com/goccmack/gocc/internal/tokenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/token`/" |
| 25 | ) |
| 26 | |
| 27 | func Genscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen`/Gen().(pkg, outDir, header string, prods astscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/.SyntaxProdListscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/SyntaxProdList#, symbols *symbolsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/symbols`/.Symbolsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/symbols`/Symbols#, |
| 28 | itemsets *itemsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/lr1/items`/.ItemSetsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/lr1/items`/ItemSets#, tokMap *tokenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/token`/.TokenMapscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/token`/TokenMap#, cfg configscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/config`/.Configscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/config`/Config#) (conflicts map[int]itemsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/lr1/items`/.RowConflictsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/lr1/items`/RowConflicts#) { |
| 29 | golangscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/.GenActionscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/GenAction().(outDir) |
| 30 | conflicts = golangscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/.GenActionTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/GenActionTable().(outDir, prods, itemsets, tokMap, cfg.Zipscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/config`/Config#Zip.()) |
| 31 | golangscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/.GenContextscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/GenContext().(pkg, outDir) |
| 32 | golangscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/.GenErrorsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/GenErrors().(pkg, outDir) |
| 33 | golangscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/.GenGotoTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/GenGotoTable().(outDir, itemsets, symbols, cfg.Zipscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/config`/Config#Zip.()) |
| 34 | golangscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/.GenParserscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/GenParser().(pkg, outDir, prods, itemsets, symbols, cfg) |
| 35 | golangscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/.GenProductionsTablescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/parser/gen/golang`/GenProductionsTable().(pkg, outDir, header, prods, symbols, itemsets, tokMap) |
| 36 | |
| 37 | return |
| 38 | } |