Skip to content

Conversation

@ydah
Copy link
Member

@ydah ydah commented Sep 2, 2025

Example:

%{
// Prologue
%}
%%
foo: "baz"
   ;
%%
/* This is a comment

Bison:

tmp/missing.y:8.1-9.0: error: missing ‘*/’ at end of file
    8 | /* This is a comment
      | ^~~~~~~~~~~~~~~~~~~~

Lrama:

# No error

Example:
```yacc
%{
// Prologue
%}
%%
foo: "baz"
   ;
%%
/* This is a comment
```

Bison:
```
tmp/missing.y:8.1-9.0: error: missing ‘*/’ at end of file
    8 | /* This is a comment
      | ^~~~~~~~~~~~~~~~~~~~
```

Lrama:
```
# No error
```
@yui-knk
Copy link
Collaborator

yui-knk commented Sep 9, 2025

I understand the intention however I'm wondering where is the best place to put the logic...

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

Successfully merging this pull request may close these issues.

2 participants