OCaml Forge
SCM

Development references

From Caml Foreign dynamic interface to C/C++ Wiki

(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
** do not forget to end str_items with ;;
** do not forget to end str_items with ;;
** "Parse error: currified constructor": ?
** "Parse error: currified constructor": ?
 +
** using "foreign" as a terminal in a grammar extension registers "foreign" as a keyword, and prevents other uses of it (like naming a variable or name "foreign") ; using LIDENT "foreign" instead fixes that problem
* list of Camlp4 antiquotations (extracted using <nowiki>perl -MData::Dumper -ne '/ANTIQUOT\s*\(([^)]+)\)/ or next; $_ = $1; print Dumper $_; ++$h{$_} for /"([^"]*)"/g; END{print join "\n", map {"** $_"} sort keys %h}' Camlp4Parsers/*</nowiki>):
* list of Camlp4 antiquotations (extracted using <nowiki>perl -MData::Dumper -ne '/ANTIQUOT\s*\(([^)]+)\)/ or next; $_ = $1; print Dumper $_; ++$h{$_} for /"([^"]*)"/g; END{print join "\n", map {"** $_"} sort keys %h}' Camlp4Parsers/*</nowiki>):
** ..
** ..

Revision as of 19:23, 9 October 2011

Personal tools
Navigation