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

make Register.{sig,str}_item_parser accessible #5158

Closed
vicuna opened this issue Sep 29, 2010 · 1 comment
Closed

make Register.{sig,str}_item_parser accessible #5158

vicuna opened this issue Sep 29, 2010 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Sep 29, 2010

Original bug ID: 5158
Reporter: Hendrik Tews
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.12.0
Fixed in version: 3.12.1+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues

Bug description

Currently it is not possible that two independent modules modify the parsing functions via Register.register_{sig,str}_item_parser, because one cannot access the current value.

@vicuna
Copy link
Author

vicuna commented Feb 10, 2011

Comment author: @xclerc

The following functions have been added to the 'Register' module:

  • value current_parser : unit -> (parser_fun PreCast.Ast.str_item * parser_fun PreCast.Ast.sig_item);
  • value current_printer : unit -> (printer_fun PreCast.Ast.str_item * printer_fun PreCast.Ast.sig_item).

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