index

API / @publicodes/tools / index

Functions

FunctionDescription
getAllRefsInNodeReturns the list of all the references in a rule node.
getDoubleDefError-
getValueWithoutQuotesUnquote a string value.
mapParsedExprASTMap a parsed expression into another parsed expression.
serializeParsedExprASTSerialize a parsed expression into its string representation.
serializeParsedRules-
substituteInParsedExprReplace all occurences [variableName] node with the corresponding [constValue] node.

Type Aliases

Type AliasDescription
ImportMacroRepresents a macro that allows to import rules from another package.
RawRuleRepresents a non-parsed NGC rule.
RawRulesRepresents a non-parsed NGC model.
RuleImportWithOverridenAttrs-
RuleNameRepresents a rule name, i.e. ‘rule . A . B’

Variables

VariableDescription
DEFAULT_BUILD_DIR-
DEFAULT_QUICKDOC_BUILD_DIR-
DEFAULT_RULES_PATHUsed by the CLI
DEFAULT_SITUATION_PATH-
disabledLogger-
IMPORT_KEYWORD-