Module bymc

Module bymc 

Source
Expand description

This module contains the parser for the ByMC specification format.

The parser uses the pest parser generator, with the grammar defined in bymc_format.pest. The grammar is based on the ByMC, but allows for more flexibility in the specification.

Structsยง

ByMCParser
Parser for the ByMC format
ByMCParsingContext ๐Ÿ”’
Context to store the definitions of macros in
PRATT_PARSER ๐Ÿ”’
PestByMCParser ๐Ÿ”’

Enumsยง

Rule
This file specifies a pest grammar for the specification format introduced by BYMC (https://github.com/konnov/bymc).

Constantsยง

_PEST_GRAMMAR_PestByMCParser ๐Ÿ”’

Functionsยง

new_parsing_error ๐Ÿ”’
Generate a new parsing error
parse_action_expr ๐Ÿ”’
Parse an action expression into a list of actions
parse_action_list ๐Ÿ”’
Parse a list of action expressions into a combined list of actions
parse_assignment_expression ๐Ÿ”’
Parse an assignment expression of an action into the corresponding list of actions
parse_boolean_atom ๐Ÿ”’
Parse boolean_atom
parse_boolean_con ๐Ÿ”’
Parse boolean connectives
parse_boolean_const ๐Ÿ”’
Parse boolean constant
parse_boolean_expr ๐Ÿ”’
Parse a constraint from a boolean expression
parse_boolean_expr_list ๐Ÿ”’
Parse list of boolean expressions
parse_comparison_expr ๐Ÿ”’
Parse comparison expression, relating two integer expressions
parse_comparison_op ๐Ÿ”’
Parse comparison operator
parse_identifier_list_to_t ๐Ÿ”’
Parse a list of identifiers into a vector of objects of type T
parse_identifier_to_t ๐Ÿ”’
Parse an identifier into an object of type T
parse_integer_atom ๐Ÿ”’
Parse integer atom
parse_integer_binary_op ๐Ÿ”’
Parse an integer operator
parse_integer_const ๐Ÿ”’
Parse integer constant
parse_integer_expr ๐Ÿ”’
Parse expression over integers into an integer expression
parse_location ๐Ÿ”’
Parse a location definition
parse_location_list ๐Ÿ”’
Parse a list of location definitions
parse_ltl_atom ๐Ÿ”’
Parse an ltl atom into a single ltl expression
parse_ltl_expr ๐Ÿ”’
Parse an ltl expression into a single ltl expression
parse_ltl_specification ๐Ÿ”’
Parse a single ltl specification
parse_reset_expression ๐Ÿ”’
Parse a reset expression into the corresponding list of actions
parse_rule ๐Ÿ”’
Parse a rule

Type Aliasesยง

CompExpr ๐Ÿ”’
Intermediate type for comparison expression of the form lhs op rhs