diff options
Diffstat (limited to 'src/Fun/Grammar.hs')
-rw-r--r-- | src/Fun/Grammar.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fun/Grammar.hs b/src/Fun/Grammar.hs index 2b46418..8014a20 100644 --- a/src/Fun/Grammar.hs +++ b/src/Fun/Grammar.hs @@ -3,8 +3,9 @@ module Fun.Grammar where import Fun.Parser import Fun.Tree +-- TODO: Multiple programs (= files) in tree tree :: Parser Tree -tree = iterFull program >>> Tree +tree = program >>> build >>> Tree <?> "tree" where build p = [p] program :: Parser Program program = iterFull block >>> Program <?> "program" |