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

Feature request: Setting custom patters for pl.lexer #122

Open
daveyc opened this issue Sep 19, 2014 · 1 comment
Open

Feature request: Setting custom patters for pl.lexer #122

daveyc opened this issue Sep 19, 2014 · 1 comment

Comments

@daveyc
Copy link

daveyc commented Sep 19, 2014

pl.lexer is very useful indeed and I'm planning on using it for a new module. I've had to patch it to meet my needs as identifiers in the grammar I want to parse can consist of a few extra characters than specified in the IDEN pattern constant.

I added a setter to change the IDEN: lexer.set_pattern("iden", "^[%%@#$%w][%%@#$%w]*")

It seems like a reasonable requirement to be included in the base.

@stevedonovan
Copy link
Contributor

That looks like serious swearing! Yes, a good idea.

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

No branches or pull requests

2 participants