-
Following https://github.com/haskell-pkg-janitors/haskell-src/issues/8#issuecomment-562895012 :
The released version haskell-src-1.0.3.1 asks for:
```
cabal-version: 2.4
```
This should be maybe …
-
_This issue was first discussed in the mailing list_
The [lbnf reference](http://bnfc.readthedocs.io/en/latest/lbnf.html#basic-lbnf) specify that "An identifier is a nonempty sequence of letters, sta…
-
Using the OCaml and Haskell backends, this grammar fails to parse the string `aa`:
```
entrypoints MyString ;
TwoChars. MyString ::= "a" "a" ;
```
```
$ bnfc -m --ocaml string.cf && make
$ echo "aa…
-
Set subtraction is translated to the `#` symbol. Flex doesn't seem to work with patterns containing this symbol. According to [this manual](https://westes.github.io/flex/manual/Patterns.html#Patterns)…
-
If my input is `my-grammar.cf`, bnfc will create java code with package name `my-grammar` which is not legal.
-
```
$ bnfc --haskell -m -d Empty.cf
0 rules accepted
Use Alex 3.0 to compile Empty/Lex.x.
Empty/Par.y Tested with Happy 1.15
writing new file ./Empty/Abs.hs
writing new file ./Empty/Lex.x
…
-
```
diff --git a/source/src/BNFC/Backend/C/CFtoFlexC.hs b/source/src/BNFC/Backend/C/CFtoFlexC.hs
index 5f56765..85f7cc1 100644
--- a/source/src/BNFC/Backend/C/CFtoFlexC.hs
+++ b/source/src/BNFC/Ba…
-
### `brew config` output
```shell
HOMEBREW_VERSION: 3.1.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: ccb05e5e0b7b925c3d6b531fa43b016fa4d0b72a
Last commit: 3 hours ago
Core tap ORIGIN: https:/…
-
Working on BNFC's Agda backend I discovered the following problem.
```agda
data I : Set where
bar : I
{-# COMPILE GHC I = data I (Bar) #-}
```
The generated Haskell module
```haskell
name…
-
BNFC chokes on a definition like the following in the grammar file.
```
token Name (char - [ "-(){};.@\" \n\r\t\f" ]) + ;
```
The reason is that the BNF lexer does handle `\r` (carriage return) an…