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

allow user actions in debug mode #301

Open
chdelfosse opened this issue May 13, 2024 · 1 comment
Open

allow user actions in debug mode #301

chdelfosse opened this issue May 13, 2024 · 1 comment

Comments

@chdelfosse
Copy link

I suggest to add a one line mod (actually addition)
"lexobj.lexdebug=debug"
at line 980 of lex.py

in order to allow a line ( in a lex user rule)
if t.lexer.lexdebug:
print("beginning %s"%t.lexer.FUTURE)

the functional code would NOT be impacted
the suggested element begins with 'lex'

@chdelfosse
Copy link
Author

the user lex code should have read (to make the purpose clearer):
if t.lexer.lexdebug:
print("beginning %s"%t.lexer.FUTURE)
t.lexer.begin(t.lexer.FUTURE)

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