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

[github patch] extend ocamllex with actions before refilling #6315

Closed
vicuna opened this issue Feb 3, 2014 · 1 comment
Closed

[github patch] extend ocamllex with actions before refilling #6315

vicuna opened this issue Feb 3, 2014 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Feb 3, 2014

Original bug ID: 6315
Reporter: @gasche
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:26:27Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 4.02.0+dev
Fixed in version: 4.02.0+dev
Category: tools (ocaml{lex,yacc,dep,debug,...})
Tags: patch
Monitored by: @hcarty

Bug description

Reported by Frédéric Bour:
#7
Patch available at:
https://github.com/ocaml/ocaml/pull/7.patch

The patch introduces a new "refill" action associated to a lexing rule.
It is optional and if not used the lexer specification and behavior are unchanged.

When specified, it allows the user to control the way the lexer is
refilled. For example, an appropriate refill handler could perform the
blocking operations of refilling under a concurrency monad such as Lwt
or Async, to work better in a cooperative concurrency setting.

@vicuna
Copy link
Author

vicuna commented Mar 26, 2014

Comment author: @gasche

Merged in 14461.

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

2 participants