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

Support .ml4 files #25

Closed
jfehrle opened this issue Jan 7, 2018 · 2 comments
Closed

Support .ml4 files #25

jfehrle opened this issue Jan 7, 2018 · 2 comments
Assignees

Comments

@jfehrle
Copy link
Collaborator

jfehrle commented Jan 7, 2018

Please treat .ml4 files (lexer input files) the same as .ml files. They seem to have the same format as .ml files, although the "[<" and ">]" in match constructions may be an extension (still learning this stuff).

An example showing [< ... >]:

  let rec loop_symb = parser
    | [< ' (' ' | '\n' | '\r' | '\t' | '"') >] -> bad_token str
    | [< s >] ->
        match unlocated lookup_utf8 Ploc.dummy s with
        | Utf8Token (_,n) -> njunk n s; loop_symb s
        | AsciiChar -> Stream.junk s; loop_symb s
        | EmptyStream -> ()
@giraud
Copy link
Owner

giraud commented Jan 11, 2018

minimal support in 0.34

@giraud giraud closed this as completed Jan 11, 2018
@jfehrle
Copy link
Collaborator Author

jfehrle commented Jan 11, 2018

Looks much better, thanks!

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