package archetype
Module Parser.MenhirInterpreterSource
include MenhirLib.IncrementalEngine.INCREMENTAL_ENGINE with type token = token
Source
val offer :
'a checkpoint ->
(token
* MenhirLib.IncrementalEngine.position
* MenhirLib.IncrementalEngine.position) ->
'a checkpointSource
type supplier =
unit ->
token
* MenhirLib.IncrementalEngine.position
* MenhirLib.IncrementalEngine.positionSource
val loop_handle :
('a -> 'answer) ->
('a checkpoint -> 'answer) ->
supplier ->
'a checkpoint ->
'answerSource
val loop_handle_undo :
('a -> 'answer) ->
('a checkpoint -> 'a checkpoint -> 'answer) ->
supplier ->
'a checkpoint ->
'answerSource
type element = | Element : 'a lr1state * 'a * MenhirLib.IncrementalEngine.position * MenhirLib.IncrementalEngine.position -> element
Source
val positions :
'a env ->
MenhirLib.IncrementalEngine.position * MenhirLib.IncrementalEngine.positionSource
type _ terminal = | T_error : unit terminal| T_XOR : unit terminal| T_WITH_METADATA : unit terminal| T_WITH : unit terminal| T_WHILE : unit terminal| T_WHEN : unit terminal| T_VIEW : unit terminal| T_VARIABLE : unit terminal| T_VAR : unit terminal| T_UTZ : string terminal| T_UNPACK : unit terminal| T_UNIT : unit terminal| T_UNDERSCORE : unit terminal| T_TZ_EXPR : string terminal| T_TZ : string terminal| T_TYPE : unit terminal| T_TRUE : unit terminal| T_TRANSITION : unit terminal| T_TRANSFER : unit terminal| T_TO : unit terminal| T_TICKET : unit terminal| T_THEN : unit terminal| T_STRING_EXT : string terminal| T_STRING : string terminal| T_STATE_IS : unit terminal| T_STATES : unit terminal| T_SOURCED : unit terminal| T_SORTED : unit terminal| T_SOME : unit terminal| T_SLASHPERCENT : unit terminal| T_SLASH : unit terminal| T_SET : unit terminal| T_SEMI_COLON : unit terminal| T_SELF : unit terminal| T_SAPLING_TRANSACTION : unit terminal| T_SAPLING_STATE : unit terminal| T_RPAREN : unit terminal| T_RIGHT : unit terminal| T_RETURN : unit terminal| T_REQUIRE_ENTRYPOINT : unit terminal| T_REQUIRE : unit terminal| T_RECORD : unit terminal| T_RBRACKET : unit terminal| T_RBRACE : unit terminal| T_QUESTIONIS : unit terminal| T_QUESTIONEQUAL : unit terminal| T_QUESTIONDOT : unit terminal| T_QUESTIONCOLONEQUAL : unit terminal| T_QUESTION : unit terminal| T_PLUSEQUAL : unit terminal| T_PLUS : unit terminal| T_PIPE_GREATER_GREATER : unit terminal| T_PIPEEQUAL : unit terminal| T_PIPE : unit terminal| T_PIDENT : string terminal| T_PERCENT_LIT : string terminal| T_PERCENT : unit terminal| T_PARTITION : unit terminal| T_OTHERWISE : unit terminal| T_OR : unit terminal| T_OPTION : unit terminal| T_ONCHAIN : unit terminal| T_OFFCHAIN : unit terminal| T_NUMBER_FR : Big_int.big_int terminal| T_NUMBERNAT : Big_int.big_int terminal| T_NUMBERINT : Big_int.big_int terminal| T_NO_TRANSFER : unit terminal| T_NOT : unit terminal| T_NONE : unit terminal| T_NEQUAL : unit terminal| T_NAMESPACE : unit terminal| T_MULTEQUAL : unit terminal| T_MULT : unit terminal| T_MTZ : string terminal| T_MINUSEQUAL : unit terminal| T_MINUS : unit terminal| T_MICHELSON : unit terminal| T_MATCH_DETACH : unit terminal| T_MATCH : unit terminal| T_MAP : unit terminal| T_MAKE_SET : unit terminal| T_MAKE_MAP : unit terminal| T_MAKE_LIST : unit terminal| T_MAKE_EVENT : unit terminal| T_MAKE_BIG_MAP : unit terminal| T_MAKE_ASSET : unit terminal| T_LPAREN : unit terminal| T_LIST : unit terminal| T_LET : unit terminal| T_LESS_LESS_PIPE : unit terminal| T_LESS_EQUAL_GREATER : unit terminal| T_LESSEQUAL : unit terminal| T_LESS : unit terminal| T_LEFT : unit terminal| T_LBRACKET : unit terminal| T_LBRACE : unit terminal| T_LAMBDA_MICHELSON : unit terminal| T_LAMBDA : unit terminal| T_ITERABLE_BIG_MAP : unit terminal| T_ITER : unit terminal| T_IS : unit terminal| T_INVALID_EXPR : unit terminal| T_INVALID_EFFECT : unit terminal| T_INVALID_DECL : unit terminal| T_INITIALIZED : unit terminal| T_INITIAL : unit terminal| T_IN : unit terminal| T_IMPORT : unit terminal| T_IMPLY : unit terminal| T_IF : unit terminal| T_IDENTIFIED : unit terminal| T_IDENT : string terminal| T_GREATEREQUAL : unit terminal| T_GREATER : unit terminal| T_GLOBAL_CONSTANT : unit terminal| T_GET_ENTRYPOINT : unit terminal| T_GETTER : unit terminal| T_FUNCTION : unit terminal| T_FROM : unit terminal| T_FOR : unit terminal| T_FOLD : unit terminal| T_FALSE : unit terminal| T_FAIL_IF : unit terminal| T_FAILSOME : unit terminal| T_FAILEXPR : unit terminal| T_FAIL : unit terminal| T_EVENT : unit terminal| T_EQUAL : unit terminal| T_EOF : unit terminal| T_ENUM : unit terminal| T_ENTRY : unit terminal| T_END : unit terminal| T_EMIT : unit terminal| T_ELSE : unit terminal| T_EFFECT : unit terminal| T_DURATION : string terminal| T_DO_REQUIRE : unit terminal| T_DO_FAIL_IF : unit terminal| T_DOT : unit terminal| T_DONE : unit terminal| T_DO : unit terminal| T_DIVEQUAL : unit terminal| T_DIV : unit terminal| T_DETACH : unit terminal| T_DECIMAL : string terminal| T_DATE : string terminal| T_CONTRACT : unit terminal| T_CONSTANT : unit terminal| T_CONST : unit terminal| T_COMMA : unit terminal| T_COLONEQUAL : unit terminal| T_COLONCOLON : unit terminal| T_COLON : unit terminal| T_CALL_VIEW : unit terminal| T_CALLED : unit terminal| T_CALL : unit terminal| T_BYTES_G2 : string terminal| T_BYTES_G1 : string terminal| T_BYTES_FR : string terminal| T_BYTES : string terminal| T_BY : unit terminal| T_BIG_MAP : unit terminal| T_BEGIN : unit terminal| T_ASSET_VIEW : unit terminal| T_ASSET_VALUE : unit terminal| T_ASSET_KEY : unit terminal| T_ASSET_CONTAINER : unit terminal| T_ASSET : unit terminal| T_AS : unit terminal| T_ARCHETYPE : unit terminal| T_ANY : unit terminal| T_ANNOTATION : string terminal| T_AND : unit terminal| T_AMPEQUAL : unit terminal| T_AGGREGATE : unit terminal| T_ADDRESS_TO_CONTRACT : unit terminal| T_ADDRESS : string terminal| T_ACCEPT_TRANSFER : unit terminal
Source
type _ nonterminal = | N_view_decl : ParseTree.declaration_unloc nonterminal| N_vc_decl_VARIABLE_ : (ParseTree.lident * ParseTree.type_t * ParseTree.expr option) nonterminal| N_vc_decl_CONSTANT_ : (ParseTree.lident * ParseTree.type_t * ParseTree.expr option) nonterminal| N_variable : ParseTree.declaration_unloc nonterminal| N_type_s_unloc : ParseTree.type_r nonterminal| N_type_r : ParseTree.type_r nonterminal| N_type_decl : ParseTree.declaration_unloc nonterminal| N_transition_to_item : (ParseTree.lident * ParseTree.expr option * ParseTree.expr option) nonterminal| N_transition : ParseTree.declaration_unloc nonterminal| N_state_is_unloc : (ParseTree.lident * ParseTree.expr option) nonterminal| N_start_expr : ParseTree.expr nonterminal| N_sourcedby_unloc : (ParseTree.expr * ParseTree.expr option) nonterminal| N_snl2_COMMA_ident_ : ParseTree.lident list nonterminal| N_snl2_COMMA_expr_ : ParseTree.expr list nonterminal| N_snl_SEMI_COLON_rf_WITH__ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced list nonterminal| N_snl_SEMI_COLON_rf_OTHERWISE__ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced list nonterminal| N_snl_SEMI_COLON_mich_node_ : ParseTree.micheline_t list nonterminal| N_snl_SEMI_COLON_field_ : ParseTree.field list nonterminal| N_snl_SEMI_COLON_cf_ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced list nonterminal| N_snl_COMMA_type_t_ : ParseTree.type_t list nonterminal| N_snl_COMMA_simple_expr_ : ParseTree.expr list nonterminal| N_snl_COMMA_parameter_ : ParseTree.parameter list nonterminal| N_snl_COMMA_function_arg_ : ParseTree.args nonterminal| N_snl_COMMA_expr_ : ParseTree.expr list nonterminal| N_snl_COLON_simple_expr_ : ParseTree.expr list nonterminal| N_sl_SEMI_COLON_field_ : ParseTree.field list nonterminal| N_sl_COMMA_simple_expr_ : ParseTree.expr list nonterminal| N_sl_COMMA_function_arg_ : ParseTree.args nonterminal| N_simple_expr_r : ParseTree.expr_unloc nonterminal| N_separated_nonempty_list_SEMI_COLON_recupdate_item_ : (ParseTree.lident * ParseTree.expr) list nonterminal| N_separated_nonempty_list_SEMI_COLON_record_item_ : ParseTree.record_item list nonterminal| N_separated_nonempty_list_SEMI_COLON_record_expr_ : ParseTree.expr list nonterminal| N_separated_nonempty_list_MULT_type_s_ : ParseTree.type_t list nonterminal| N_separated_nonempty_list_COMMA_ident_ : ParseTree.lident list nonterminal| N_rf_unloc_WITH_ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) nonterminal| N_rf_unloc_OTHERWISE_ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) nonterminal| N_rf_WITH_ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced nonterminal| N_rf_OTHERWISE_ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced nonterminal| N_recupdate_item : (ParseTree.lident * ParseTree.expr) nonterminal| N_record_item : ParseTree.record_item nonterminal| N_record : ParseTree.declaration_unloc nonterminal| N_pname : ParseTree.pname nonterminal| N_order_operations : ParseTree.expr_unloc nonterminal| N_order_operation : ParseTree.expr_unloc nonterminal| N_option_with_effect_ : ParseTree.expr option nonterminal| N_option_tentry_postfix_ : (ParseTree.lident * ParseTree.expr) option nonterminal| N_option_state_is_ : (ParseTree.lident * ParseTree.expr option) Location.loced option nonterminal| N_option_sourcedby_ : (ParseTree.expr * ParseTree.expr option) Location.loced option nonterminal| N_option_require_value_ : ParseTree.expr option nonterminal| N_option_require_ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced list option nonterminal| N_option_record_position_ : ParseTree.expr option nonterminal| N_option_prefix_EQUAL_enum_body__ : ParseTree.enum_decl option nonterminal| N_option_paren_separated_nonempty_list_COMMA_ident___ : ParseTree.lident list option nonterminal| N_option_parameter_init_ : ParseTree.expr option nonterminal| N_option_otherwise_section_ : ParseTree.expr option nonterminal| N_option_function_return_ : ParseTree.type_t option nonterminal| N_option_failif_ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced list option nonterminal| N_option_effect_ : ParseTree.expr option nonterminal| N_option_default_value_ : ParseTree.expr option nonterminal| N_option_constants_ : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced list option nonterminal| N_option_calledby_ : (ParseTree.expr * ParseTree.expr option) Location.loced option nonterminal| N_option_asset_options_ : ParseTree.asset_option list option nonterminal| N_option_asset_fields_ : ParseTree.field list option nonterminal| N_option_app_args_ : ParseTree.expr list option nonterminal| N_option_SEMI_COLON_ : unit option nonterminal| N_nonempty_list_type_tuple_ : ParseTree.type_t list nonterminal| N_nonempty_list_transition_to_item_ : ParseTree.transition nonterminal| N_nonempty_list_mich_argument_ : ParseTree.micheline_t list nonterminal| N_nonempty_list_loc_pattern__ : ParseTree.pattern list nonterminal| N_nonempty_list_ident_ : ParseTree.lident list nonterminal| N_nonempty_list_declaration_ : ParseTree.archetype_unloc nonterminal| N_nonempty_list_branch_ : ParseTree.branch list nonterminal| N_nonempty_list_asset_option_ : ParseTree.asset_option list nonterminal| N_namespace : ParseTree.declaration_unloc nonterminal| N_mich_node : ParseTree.micheline_t nonterminal| N_mich_argument : ParseTree.micheline_t nonterminal| N_main : ParseTree.archetype nonterminal| N_loption_separated_nonempty_list_SEMI_COLON_recupdate_item__ : (ParseTree.lident * ParseTree.expr) list nonterminal| N_loption_separated_nonempty_list_SEMI_COLON_record_item__ : ParseTree.record_item list nonterminal| N_literal : ParseTree.literal nonterminal| N_list_mich_annot_ : string list nonterminal| N_list_function_item_ : ParseTree.s_function Location.loced list nonterminal| N_list_enum_option_ : ParseTree.enum_option list nonterminal| N_list_enum_cdecl_ : ParseTree.enum_decl nonterminal| N_list_asset_post_option_ : ParseTree.asset_post_option list nonterminal| N_import : ParseTree.declaration_unloc nonterminal| N_implementation_archetype : ParseTree.archetype_unloc nonterminal| N_getter_simple : ParseTree.declaration_unloc nonterminal| N_getter : ParseTree.declaration_unloc nonterminal| N_function_item : ParseTree.s_function Location.loced nonterminal| N_function_decl : ParseTree.declaration_unloc nonterminal| N_field_r : ParseTree.field_unloc nonterminal| N_expr_r : ParseTree.expr_unloc nonterminal| N_event : ParseTree.declaration_unloc nonterminal| N_enum_option : ParseTree.enum_option nonterminal| N_enum_cdecl : (ParseTree.lident * ParseTree.type_t list * ParseTree.enum_option list) nonterminal| N_enum_body : ParseTree.enum_decl nonterminal| N_enum : ParseTree.declaration_unloc nonterminal| N_entry_simple : ParseTree.declaration_unloc nonterminal| N_entry_properties : ParseTree.entry_properties nonterminal| N_entry : ParseTree.declaration_unloc nonterminal| N_effect : ParseTree.expr nonterminal| N_declaration_r : ParseTree.declaration_unloc nonterminal| N_constant : ParseTree.declaration_unloc nonterminal| N_cfs : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced list nonterminal| N_cf_unloc : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) nonterminal| N_cf : (ParseTree.lident * ParseTree.expr * ParseTree.expr option) Location.loced nonterminal| N_calledby_unloc : (ParseTree.expr * ParseTree.expr option) nonterminal| N_branch : ParseTree.branch nonterminal| N_boption_CONST_ : bool nonterminal| N_asset_post_option : ParseTree.asset_post_option nonterminal| N_asset_option : ParseTree.asset_option nonterminal| N_asset_init : ParseTree.init_asset nonterminal| N_asset : ParseTree.declaration_unloc nonterminal| N_archetype_r : ParseTree.archetype_unloc nonterminal| N_archetype : ParseTree.declaration_unloc nonterminal
include MenhirLib.IncrementalEngine.INSPECTION
with type 'a lr1state := 'a lr1state
with type production := production
with type 'a terminal := 'a terminal
with type 'a nonterminal := 'a nonterminal
with type 'a env := 'a env
include MenhirLib.IncrementalEngine.SYMBOLS
with type 'a terminal := 'a terminal
with type 'a nonterminal := 'a nonterminal
Source
val feed :
'a symbol ->
MenhirLib.IncrementalEngine.position ->
'a ->
MenhirLib.IncrementalEngine.position ->
'b env ->
'b env