owo-lang / OwO

Placeholder for the OwO compiler
Apache License 2.0
59 stars 1 forks source link

Verbosity of `--dump-tokens` #19

Closed anqurvanillapy closed 5 years ago

anqurvanillapy commented 5 years ago

Phew I'm just a goddamn Haskell newbie, hoowee. The verbosity of --dump-tokens option should be added for more convenient testing, e.g. a full verbosity (token type, token value, location) and a simple one (only token type and value).

The current choice is the second one.

anqurvanillapy commented 5 years ago

Currently a wrong verbosity level will ExitFailure with a stderr-based string, which is completely undesirable since showing help text is the best way to elaborate problems.

anqurvanillapy commented 5 years ago

Added --dump-simple to dump tokens/AST in a concise way (without information like positions), and it can be used to straightly print anything about compiler frontend that eases the mind.

ice1000 commented 5 years ago

我觉得你理解错我意思了

anqurvanillapy commented 5 years ago

Go get 'em bae QAQ