ragel icon indicating copy to clipboard operation
ragel copied to clipboard

[7.0.4] parse error caused by renaming `stack` variable

Open pnck opened this issue 1 year ago • 0 comments

POC:

%%{
    machine M;
    variable stack stack;
    B := 'B' @{fret;}
    ;
    main := 'A' @{fcall B;}
    ;
}%%

fn f() {
    %% write exec;
}

CleanShot 2023-07-20 at 04 43 40


  • stack is the only variable triggering this issue.
  • all language host using .ri files (e.g. go,java) are affected.
  • using a fresh build from master branch (both colm and ragel).

pnck avatar Jul 19 '23 20:07 pnck