hasithvm / lasm

public repository for an educational assembler for the Libra project.
1 stars 3 forks source link

Obscure error message for missing '.' before compiler directive #9

Open DarrenStahl opened 11 years ago

DarrenStahl commented 11 years ago

Repro: Assemble the following line: Message: DB 'Hello World!$' Result: ERROR: lasm-parser (35) syntax error, unexpected TEXT, expecting DIRECTIVE

Expected result: An error message which indicates that a compiler directive was encountered when not expected (or is missing a '.')

hasithvm commented 11 years ago

This should be fixable to an extent by providing bison with a better textual description of the syntax -- but I'm limited to that. Bison (the parser generator) has its own errgen mechanisms.