bnfc
bnfc copied to clipboard
BNF Converter
I am having trouble figuring out how I can write a `token` like the built-in `String` but with different quotation marks and, in my Abs.hs result, only get the content...
This is an issue to contemplate a more flexible handling of LBNF rules in the backend. Currently there is a `define` pragma that allows rule names to be first-order functions...
I turned on the new `--text-token` option – thank you for that, by the way! – but `String` is the one thing still parsed into a Haskell `String` (`[Char]`) rather...
You can write `separator nonempty Stmt ","` in the grammar but the generated `Abs` file still uses the type `[Stmt]` rather than `NonEmpty Stmt`. This means that you have to...
I'm using BNFC 2.9.1. Consider this .cf file: ``` EAB. Exp ::= AB; EA_B. Exp ::= A B; token A 'a'; token B 'b'; token AB 'a' ' ' 'b';...
Linux binaries are missing for the following releases: - [ ] 2.8.3 (#262) - [ ] 2.8.4 (#300) - [ ] 2.9.0 (#326) - [ ] 2.9.1 (#342) - [...
Currently, the delimiters for lists with layout are hardwired to the Haskell ones, `{ ; }`. This could be relaxed, by analysing which form of list layout keywords are followed....
The pragma e.g. `coercions Exp 3` should issue a warning if the grammar contains variants of `Exp` outside of the range 1-3. This is more likely a mistake than intention....
[`Rust`](https://www.rust-lang.org) is quite a new language... but, it is an awesome language. Particularly, it features `affine types`, `algebraic data types`, and is in addition a `systems programming language`, so it's...
[ Haskell ] Name created test parser as file, not Main (+) avoids conflicts with user-written Main module (-) harder to compile, needs ghc -main-is option Not sure whether this...