Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unterminated string inside action yields non-obvious error #105

Open
bottle2 opened this issue Jun 29, 2024 · 0 comments
Open

Unterminated string inside action yields non-obvious error #105

bottle2 opened this issue Jun 29, 2024 · 0 comments

Comments

@bottle2
Copy link

bottle2 commented Jun 29, 2024

Hello.

On MSYS2:

Nero@DESKTOP-QIBT7ND CLANG64 ~
$ ragel -v
Ragel State Machine Compiler version 6.10 March 2017
Copyright (c) 2001-2009 by Adrian Thurston

Nero@DESKTOP-QIBT7ND CLANG64 ~
$ cat action-braces-mre.rl
%% machine mre;
%% action oopsie { puts("woopsie); }
%% main := "doopsie";

Nero@DESKTOP-QIBT7ND CLANG64 ~
$ ragel action-braces-mre.rl
<EOF>:0: at token Parser_tk_eof: parse error

On Android:

~ $ ragel -v
Ragel State Machine Compiler version 7.0.4 February 2021
Copyright (c) 2001-2021 by Dr. Adrian D. Thurston et al.
~ $ cat mre.rl
%% machine mre;
%% action oopsie { puts("woopsie); }




%% main := "doopsie";
~ $ ragel mre.rl
mre.rl:8:1: parse error
~ $

normal people would see that half their code is purple and then fix the error, but my syntax highlight is off :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant