ermine-language / ermine

The Ermine Programming Language - Join us on irc.freenode.net #ermine
http://ermine-language.github.io/ermine/
Other
218 stars 17 forks source link

Parse whitespace and comments #18

Open S11001001 opened 9 years ago

S11001001 commented 9 years ago

As of 97ed3b226511310a4a2a4f0d026e610dcf97c6ec:

λ> :l Ermine.Console.Module
...
λ> testLoader "Prelude.DB"
Left (interactive):1:1: error: expected: module header

remove whitespace at top

λ> testLoader "Prelude.DB"
Left (interactive):1:1: error: expected: ":",
    "data", "infix", "infixl",
    "infixr", "postfix", "prefix",
    "type", end of input,
    term variable
-- foreign data DB a 
^                    

/cc @joshcough

S11001001 commented 9 years ago

I believe this needs a new Trifecta release to fix completely, and thus #17 fixed as well. /cc @ekmett

S11001001 commented 9 years ago

196d8644395b4c2bf94ea48d5d63f238ff4a4b64 should deal with the first of these; thanks @ekmett for the tips.