index
API / @publicodes/tools / index
Functions
| Function | Description |
|---|---|
| getAllRefsInNode | Returns the list of all the references in a rule node. |
| getDoubleDefError | - |
| getValueWithoutQuotes | Unquote a string value. |
| mapParsedExprAST | Map a parsed expression into another parsed expression. |
| serializeParsedExprAST | Serialize a parsed expression into its string representation. |
| serializeParsedRules | - |
| substituteInParsedExpr | Replace all occurences [variableName] node with the corresponding [constValue] node. |
Type Aliases
| Type Alias | Description |
|---|---|
| ImportMacro | Represents a macro that allows to import rules from another package. |
| RawRule | Represents a non-parsed NGC rule. |
| RawRules | Represents a non-parsed NGC model. |
| RuleImportWithOverridenAttrs | - |
| RuleName | Represents a rule name, i.e. ‘rule . A . B’ |
Variables
| Variable | Description |
|---|---|
| DEFAULT_BUILD_DIR | - |
| DEFAULT_QUICKDOC_BUILD_DIR | - |
| DEFAULT_RULES_PATH | Used by the CLI |
| DEFAULT_SITUATION_PATH | - |
| disabledLogger | - |
| IMPORT_KEYWORD | - |