Expand description
Functions to support logic variables and the global LOGIC_VAR_ID.
Logic variables (LogicVar) consist of a name and an ID.
The name should start with a dollar sign and a letter, for example: $H.
Logic variables which are stored in rules can have an ID of 0, but when the rule is fetched from the knowledge base, its variables must be recreated to give them unique IDs.
See recreate_variables().
Functions§
- clear_
id - Sets the logic variable ID to zero.
- get_
var_ id - Gets the logic variable ID.
- make_
logic_ var - Creates a logic variable from a string.
- next_id
- Increment and return the logic variable ID.
- set_
var_ id - Sets the logic variable ID to the given value.