Expand description
Parser for the CP scheduling modelling language.
Top-level grammar:
model = "model" IDENT sections* objective?
sections = variables_block | domains_block | constraints_blockPublic entry point: parse_model
Modules§
- constraint
- Constraints block parser for the CP language.
- decl
- Variables block parser for the CP language.
- domain
- Domains block parser for the CP language.
- expr
- Expression parser for the CP language using Pratt parsing.
Structs§
- Parser
- Parser state wrapping a token slice with a cursor.
Functions§
- parse_
expr_ str - Parse an expression from a source string (for testing).
- parse_
model - Parse a Jia model from a token slice.
- parse_
model_ str - Parse a CP model from a source string.