Allow digits in label names
Also, only allow a-zA-Z as the first character of label names.
This commit is contained in:
parent
6ac5bfc9e7
commit
5e9c50d618
3 changed files with 9 additions and 9 deletions
|
|
@ -39,11 +39,8 @@ incrementCurrentPos = do
|
|||
put s{sCurrentPos = succ $ sCurrentPos s}
|
||||
|
||||
parseInstructions' :: SParser ()
|
||||
parseInstructions' = sepBy parseInstruction' incrementCurrentPos >> lift (eof <|> fail atMaxAddress)
|
||||
parseInstructions' = sepBy parseInstruction' incrementCurrentPos >> lift eof
|
||||
where
|
||||
atMaxAddress = "already at maximum address (" ++ show (maxBound :: MimaAddress)
|
||||
++ ") - can't go any further"
|
||||
|
||||
parseInstruction' :: SParser ()
|
||||
parseInstruction' = do
|
||||
s <- get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue