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

ocamllex syntax (feature wish) #2430

Closed
vicuna opened this issue Apr 8, 2004 · 2 comments
Closed

ocamllex syntax (feature wish) #2430

vicuna opened this issue Apr 8, 2004 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Apr 8, 2004

Original bug ID: 2430
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Per Larsson
Version: 3.07+
OS: linux
Submission from: 1-1-8-41a.ens.sth.bostream.se (82.182.158.5)

I miss the very convenient character set difference operation in ocamllex
regular expressions, e.g.
let printable = ['\032'-'\126' '\160'-'\255']
let string = '"' (printable # ['"'])+ '"'

This operation is present in newer lex implementations (e.g. java "jflex" and
haskell "alex") and is more general and therefore more useful than the charset
complement operation (the construction [^...] can remain as syntactic sugar for
_#[...])

@vicuna
Copy link
Author

vicuna commented Apr 28, 2004

Comment author: administrator

Seems quite easy and may be useful, I add it.

Thank you for your suggestion.

--
Luc Maranget

@vicuna
Copy link
Author

vicuna commented Apr 28, 2004

Comment author: administrator

Easy, may not exactly be what user wants though.
--Luc

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

No branches or pull requests

1 participant