diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2023-03-11 07:36:11 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2023-03-11 07:36:11 -0500 |
commit | bc3e952b487365fdf5e60e9fcfa0841c23972e30 (patch) | |
tree | cc53facc2a62db4dc93a25c772f521786305ead8 /alee-msp430.cpp | |
parent | f8270776e79f4d2edb7c2a19c1ecd3bf3b2bf153 (diff) |
common error enum; eval to _ev
Diffstat (limited to 'alee-msp430.cpp')
-rw-r--r-- | alee-msp430.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alee-msp430.cpp b/alee-msp430.cpp index 3121dc1..ca00026 100644 --- a/alee-msp430.cpp +++ b/alee-msp430.cpp @@ -66,14 +66,15 @@ int main() serputs("\n\r"); - if (auto r = Parser::parse(state, strbuf); r == 0) { + if (auto r = Parser::parse(state, strbuf); r == Error::none) { serputs(state.compiling() ? " compiled" : " ok"); } else { switch (r) { - case Parser::UnknownWord: + case Error::noword: serputs("unknown word..."); break; default: + serputs("error..."); break; } } |