git @ Cat's Eye Technologies ZOWIE / 54c4d7b
Have parser syntax error on non-MOV, non-comment lines. Chris Pressey 5 months ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
22 import Data.Maybe (catMaybes)
33 import Text.ParserCombinators.Parsec
44 (
5 many, string, satisfy, Parser, (<|>), digit, newline, optional, try, parse
5 many, many1, string, satisfy, Parser, (<|>), digit, newline, optional, try, parse
66 )
77
88 import Language.ZOWIE.State
2121 -- Comment ::= ";" anything.
2222 --
2323
24 zowie = many zowieLine
25
26 zowieLine = (try commentLine) <|> instrLine
24 zowie = many1 (commentLine <|> instrLine)
2725
2826 comment = do
2927 spaces