-
the Test*.ml created by the ocaml-menhir backend does not report parse errors with correct line/column numbers. The error is always
`Parse error at 0.-1-0.-1`
This can for example be checked with…
-
Background: I want to have a list of ``Data`` category elements with at least two elements. The easiest working solution I found is
```
DPair. Data ::= "Pair" Pair ;
DPairSeq1. Pair ::= Data Data…
-
On C++ backend, generated codes should add `#include `
This is my output logs during building bnfc generated C++ code
```
make
g++ -g --ansi -W -Wall -Wno-unused-parameter -Wno-unused-function -…
-
Hi, I just test like this:
```
-- M.cf
EInt. Exp ::= Integer ;
EType. Type ::= "Int" ;
entrypoints Exp, Type ;
```
complier to Haskell and make:
```shell
$ bnfc -d -m M.cf
$ make
```
…
-
consider the following defintion `test.cf` with a token rule named "Int":
```
token` Int '-'? digit+ ;
entrypoints Prog ;
Code. Prog ::= Instr ";" [Instr] ;
separator Instr ";" ;
_. Ins…
-
Any idea what the following error message is trying to convey?
```bash
alex --ghc Sv/Lex.x
happy --array --info --ghc --coerce Sv/Par.y
unused rules: 40
unused terminals: 1
Grammar info written …
-
Release candidate:
- [x] finish testing
- [x] write release notes
- [x] upload to hackage: see https://hackage.haskell.org/package/BNFC-2.9.2/candidate
- [x] v2.9.2-rc release tag
- [x] github r…
-
4eUeP updated
3 years ago
-
`cabal init` nicely auto-detects `build-tools` like `happy` and `alex`. However, it puts their generated modules twice into `exposed-modules`, like:
```
library
exposed-modules: Main, Foo.Print,…
-
cabal-3.5.0.0 seems to have no implicit `build-depends` of the `executable` on the `library` so `cabal init` should add this.
Here is a reproduction script (from https://github.com/haskell/cabal/pu…