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

How to use EOI ? #10

Open
mingodad opened this issue Aug 24, 2023 · 3 comments
Open

How to use EOI ? #10

mingodad opened this issue Aug 24, 2023 · 3 comments

Comments

@mingodad
Copy link

In several grammars they refer to EOI in the lexer, something like:

<xq,xe,xus><<EOF>>		{ yyerror("unterminated quoted string"); }
...
<xb><<EOF>>		{ yyerror("unterminated bit string literal"); }
...
<*><<EOF>>                              return 'EOF';
...
<<EOF>>			{ SET_YYLLOC(); yyterminate();	}

How to use/access the EOI through a grammar ?

@BenHanson
Copy link
Owner

BenHanson commented Jul 13, 2024

I once added <<EOF>> support, but it didn't work well. Harmut suggested removing it as 'nobody needs that feature' or some-such.

Let me think about it again with the benefit of greater experience.

@mingodad
Copy link
Author

Can you point it out in git history ?

@BenHanson
Copy link
Owner

This pre-github. The first proper release was in 2006 (I think it was on CodeProject originally) and it was committed to github in August 2012.

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

2 participants