BNFC-meta 0.2 → 0.2.0.1
raw patch · 3 files changed
+4/−2 lines, 3 files
Files
- BNFC-meta.cabal +1/−1
- Language/LBNF/CF.hs +1/−1
- Language/LBNF/Compiletime.hs +2/−0
BNFC-meta.cabal view
@@ -1,5 +1,5 @@ Name: BNFC-meta -version: 0.2 +version: 0.2.0.1 cabal-Version: >= 1.6 build-type: Simple license: GPL-2
Language/LBNF/CF.hs view
@@ -169,7 +169,7 @@ -- Info is information extracted from the CF, for easy access. -- Literals - Char, String, Ident, Integer, Double -- Strings are quoted strings, and Ident are unquoted. --- Symbols - symbols in the grammar, e.g. ´*´, '->'. +-- Symbols - symbols in the grammar, e.g. *, '->'. -- KeyWord - reserved words, e.g. 'if' 'while' type Info = ([Literal],[Symbol],[KeyWord],[Cat])
Language/LBNF/Compiletime.hs view
@@ -68,6 +68,8 @@ appEAllL l a = listE $ map return a appPAllL l [p,ListP ps] = listP $ map return $ p : ps -- ConP cons_name ps +appPAllL l [x] = listP [return x] + class Literal a where lit :: a -> Lit