gocc icon indicating copy to clipboard operation
gocc copied to clipboard

Parser / Scanner Generator

Results 37 gocc issues
Sort by recently updated
recently updated
newest added

Even if #71 is unsuccessful, computing follow sets will be informative along with other generated `*.txt` files in verbose mode. Tested on [calc.bnf](https://github.com/goccmack/gocc/blob/master/example/calc/calc.bnf) - generated [follow.txt](https://shivanshrai84.gitlab.io/staticPages/assets/follow.txt) file. ``` S': {...

I'm trying to create a parser instance inside a [bnf file](https://github.com/shivansh/gogo/blob/imports/src/imports.bnf#L88). Interestingly, when I [try to do so](https://github.com/shivansh/gogo/commit/be6e823ddc97ed899f0cfaf0986d3a13bb9a5c5c) the following error is encountered - ``` tmp/parser/productionstable.go:320: initialization loop: /home/zeebu/sourceCodes/personalProjects/goProjects/src/gogo/tmp/parser/productionstable.go:320 productionsTable...

In JavaCC the regex for a single digit: `["0" - "9"]` A lowercase character: `["a" - "z"]` A single alphanumeric character in any case: `["0" - "9", "A" - "Z",...

We have added a comment above in each file saying that it is generated and that helps alot. It would be even better if we could add a file extension....

I have a grammar that needs a multi-character string delimiter. This simplified ebnf captures the basic idea: ```ebnf _delimiter: '_' '$'; string: _delimiter { . } _delimiter; > World: "Argument:...

* Pager, David. "A practical general method for constructing LR (k) parsers." Acta Informatica 7.3 (1977): 249-268. As motivated by Marius in https://github.com/goccmack/gocc/issues/13#issuecomment-181827331 > When I have the time again...

Contents of `x.bnf`: ``` go foo : 'b' 'a' 'r' ; Start : foo "foo" ; ``` ``` $ gocc x.bnf panic: Production foo already exists goroutine 1 [running]: panic(0x5a4220,...

As previously discussed in https://github.com/goccmack/gocc/issues/14#issuecomment-254088561 , the handling of tabs as 4 (or any other number) of speces are not satisfactory. I propose to remove special handling of tab characters...

Gocc has always been intended to support a variety of output language, as evident by the separation of Go related `gen` packages, from the generic aspects of the code. -...

help wanted

I get the following errors when trying to generate Gocc from the [gocc2.bnf](https://github.com/goccmack/gocc/blob/master/spec/gocc2.ebnf) grammar, using the [gen.sh](https://github.com/goccmack/gocc/blob/master/gen.sh) script. ``` $ ./gen.sh warning: undefined symbol "g_sdt_lit" used in productions ["FileHeader" "SyntaxBody"...