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

WISH: beginning of line regexp for ocamllex #8353

Open
vicuna opened this Issue Oct 31, 2003 · 0 comments

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

vicuna commented Oct 31, 2003

Original bug ID: 1910
Reporter: administrator
Status: acknowledged
Resolution: open
Priority: normal
Severity: feature
Category: tools (ocaml{lex,yacc,dep,debug,...})

Bug description

It appears that Ocamllex does not support the "^r" pattern (found in Flex
at least) that matches the beginning of line. This is very useful for
example in a case where you want to parse the C preprocessor # line
directive.

Emulating this by hand with more complex lexers is kinda awkward.

Best regards,
Janne Hellsten

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.