Index of values


A
add [Quotation]
add name exp adds the quotation name associated with the expander exp.
add_option [Pcaml]
Add an option to the command line options.
apply [Extfun]
Apply an extensible function

C
class_expr [Pcaml]
class_sig_item [Pcaml]
class_str_item [Pcaml]
class_type [Pcaml]
Some entries of the language, set by pa_o.cmo and pa_r.cmo.
clear_entry [Grammar.S.Unsafe]
clear_entry [Grammar.Unsafe]
create [Grammar.S.Entry]
create [Grammar.Entry]
ctyp [Pcaml]

D
default [Quotation]
default holds the default quotation name.
default_match [Token]
A simple tok_match function for lexers, appling to token type (string * string)
delete_rule [Grammar.S]
dollar_for_antiquotation [Plexer]
When True (default), the next call to Plexer.make () returns a lexer where the dollar sign is used for antiquotations.

E
empty [Extfun]
Empty extensible function
error_verbose [Grammar]
Flag for displaying more information in case of parsing error; default = False
eval_char [Token]
eval_string [Token]
Convert a char or a string token, where the backslashes had not been interpreted into a real char or string; raise Failure if bad backslash sequence found; Token.eval_char (Char.escaped c) returns c and Token.eval_string (String.escaped s) returns s
expr [Pcaml]
expr_reloc [Pcaml]
extend [Grammar.S]

F
find [Quotation]
find name returns the expander of the given quotation name.
find [Grammar.Entry]
find_pr_level [Pcaml]
fold_entry [Grammar]
Grammar.fold_entry f e init computes (f eN .. (f e2 (f e1 init))), where e1 .. eN are e and transitively all entries called by e.

G
gcreate [Grammar]
Create a new grammar, without keywords, using the lexer given as parameter.
glexer [Grammar.S]
glexer [Grammar]
Return the lexer used by the grammar
gmake [Plexer]
Some lexer provided.
gram [Pcaml]
Grammar variable of the OCaml language
gram_reinit [Grammar.S.Unsafe]
gram_reinit [Grammar.Unsafe]

H
handle_expr_locate [Pcaml]
handle_expr_quotation [Pcaml]
handle_patt_locate [Pcaml]
handle_patt_quotation [Pcaml]

I
implem [Pcaml]
input_file [Pcaml]
The file currently being parsed.
inter_phrases [Pcaml]
interf [Pcaml]
iter_entry [Grammar]
Grammar.iter_entry f e applies f to the entry e and transitively all entries called by e.

L
let_binding [Pcaml]
lexer [Grammar.GLexerType]
lexer_func_of_ocamllex [Token]
A lexer function from a lexer created by ocamllex
lexer_func_of_parser [Token]
A lexer function from a lexer written as a char stream parser returning the next token and its location.
lexer_text [Token]
A simple tok_text function for lexers
line_of_loc [Stdpp]
line_of_loc fname loc reads the file fname up to the location loc and returns the real input file, the line number and the characters location in the line; the real input file can be different from fname because of possibility of line directives typically generated by /lib/cpp.
loc_name [Stdpp]
Name of the location variable used in grammars and in the predefined quotations for OCaml syntax trees.

M
make_stream_and_location [Token]
General function
module_expr [Pcaml]
module_type [Pcaml]

N
name [Grammar.S.Entry]
name [Grammar.Entry]
no_constructors_arity [Pcaml]
True: dont generate constructor arity.
no_quotations [Plexer]
When True, all lexers built by Plexer.make () do not lex the quotation syntax any more.

O
obj [Grammar.S.Entry]
obj [Grammar.Entry]
of_entry [Grammar]
Return the grammar associated with an entry.
of_parser [Grammar.S.Entry]
of_parser [Grammar.Entry]
output_file [Pcaml]
The output file, stdout if None (default)

P
parsable [Grammar.S]
parse [Grammar.S.Entry]
parse [Grammar.Entry]
parse_implem [Pcaml]
Called when parsing an interface (mli file) or an implementation (ml file) to build the syntax tree; the returned list contains the phrases (signature items or structure items) and their locations; the boolean tells that the parser has encountered a directive; in this case, since the directive may change the syntax, the parsing stops, the directive is evaluated, and this function is called again.
parse_interf [Pcaml]
parse_token [Grammar.S.Entry]
parse_token [Grammar.Entry]
patt [Pcaml]
patt_reloc [Pcaml]
pr_class_expr [Pcaml]
pr_class_sig_item [Pcaml]
pr_class_str_item [Pcaml]
pr_class_type [Pcaml]
pr_ctyp [Pcaml]
pr_expr [Pcaml]
pr_expr_fun_args [Pcaml]
pr_module_expr [Pcaml]
pr_module_type [Pcaml]
pr_patt [Pcaml]
pr_sig_item [Pcaml]
pr_str_item [Pcaml]
print [Extfun]
Print patterns in the order they are recorded
print [Grammar.S.Entry]
print [Grammar.Entry]
print_entry [Grammar]
General printer for all kinds of entries (obj entries)
print_implem [Pcaml]
Some printers, set by pr_dump.cmo, pr_o.cmo and pr_r.cmo.
print_interf [Pcaml]

Q
quotation_dump_file [Pcaml]
quotation_dump_file optionally tells the compiler to dump the result of an expander if this result is syntactically incorrect.

R
raise_with_loc [Stdpp]
raise_with_loc loc e, if e is already the exception Exc_located, re-raise it, else raise the exception Exc_located loc e.
rename_id [Pcaml]
To possibly rename identifiers; parsers may call this function when generating their identifiers; default = identity
report_error [Pcaml]
Prints an error message, using the module Format.

S
sig_item [Pcaml]
specific_space_dot [Plexer]
When False (default), the next call to Plexer.make () returns a lexer where the dots can be preceded by spaces.
str_item [Pcaml]
strict_parsing [Grammar]
Flag to apply strict parsing, without trying to recover errors; default = False
string_of [Pcaml]
sync [Pcaml]
syntax_name [Pcaml]

T
tokens [Grammar.S]
tokens [Grammar]
Given a grammar and a token pattern constructor, returns the list of the corresponding values currently used in all entries of this grammar.
top_phrase [Pcaml]
top_printer [Pcaml]
translate [Quotation]
function translating quotation names; default = identity
type_declaration [Pcaml]

U
use_file [Pcaml]

V
version [Pcaml]
The current version of Camlp4.

W
warning_verbose [Grammar]
Flag for displaying warnings while extension; default = True