Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005635OCaml-for Camlp4 use 20:022016-12-07 18:25
Assigned Tohongboz 
PrioritynormalSeverityfeatureReproducibilityhave not tried
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005635: Factoring Camlp4Parsers
DescriptionThere are lots of Parsers in directory camlp4/Camlp4Parsers.
It would be nice to factor out one line
"let module M = Register.OCamlSyntaxExtension Id Make in ();"
to make it more reusable.

The Grammar is already parameterized over Camlp4Ast;
but the last line makes linking with Camlp4OCamlRevisedParser.cmo will mutate Syntax. It would be nice to move the last line to another file.
Then users can get the parsers for free without polluting its syntax.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
hongboz (developer)
2012-07-10 20:19

Other factoring which makes camlp4 more usable is to parameterize Register module which depends on PreCast.
Since Camlp4 3.10+ was developed based on the idea that Lexer's parameterized, but the fact that depends on which hardcode the default makes users to supply their own Lexer too much work.

I guess refactoring these modules will not take too much time, but people may need to take care of the building scripts.
hongboz (developer)
2013-07-07 16:32

It requires to coordinate with ocamlfind (camlp4.META), otherwise it would break most existing libraries, so I put the status as suspend.

- Issue History
Date Modified Username Field Change
2012-06-05 20:02 hongboz New Issue
2012-06-27 15:08 doligez Assigned To => doligez
2012-06-27 15:08 doligez Status new => acknowledged
2012-07-06 15:12 doligez Assigned To doligez =>
2012-07-10 20:19 hongboz Note Added: 0007701
2013-07-01 02:38 hongboz Assigned To => hongboz
2013-07-01 02:38 hongboz Status acknowledged => assigned
2013-07-07 16:32 hongboz Note Added: 0009715
2013-07-07 16:33 hongboz Status assigned => resolved
2013-07-07 16:33 hongboz Resolution open => suspended
2016-02-08 12:49 doligez Category Camlp4 => for Camlp4 use [^]
2016-02-08 12:50 doligez Category for Camlp4 use [^] => for Camlp4 use [^]
2016-12-07 18:25 dim Status resolved => closed
2017-02-23 16:43 doligez Category for Camlp4 use [^] => -for Camlp4 use [^]

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker