|
Lime Parser Generator 0.1.0
Runtime-extensible LALR(1) parser with SIMD tokenization and LLVM JIT
|
Collection of detected conflicts. More...
Data Structures | |
| struct | ConflictSet |
| Collection of detected conflicts. More... | |
Functions | |
| bool | conflict_set_add (ConflictSet *cs, ConflictType type, uint32_t mod_index_a, uint32_t mod_index_b, ExtensionID ext_id_a, ExtensionID ext_id_b, const char *description) |
| Add a conflict to the set. | |
| ConflictSet * | conflict_set_create (void) |
| Create an empty conflict set. | |
| void | conflict_set_destroy (ConflictSet *cs) |
| Destroy a conflict set and free all owned memory. | |
| uint32_t | conflict_set_unresolved_count (const ConflictSet *cs) |
| Return the number of unresolved conflicts in the set. | |
Collection of detected conflicts.
| bool conflict_set_add | ( | ConflictSet * | cs, |
| ConflictType | type, | ||
| uint32_t | mod_index_a, | ||
| uint32_t | mod_index_b, | ||
| ExtensionID | ext_id_a, | ||
| ExtensionID | ext_id_b, | ||
| const char * | description | ||
| ) |
#include <include/conflict.h>
Add a conflict to the set.
| cs | Conflict set to add to. |
| type | Type of conflict. |
| mod_index_a | Index of the first conflicting modification. |
| mod_index_b | Index of the second conflicting modification. |
| ext_id_a | Extension ID owning modification A. |
| ext_id_b | Extension ID owning modification B. |
| description | Human-readable description (copied internally). |
| true | Conflict was added. |
| false | Allocation failure. |
| ConflictSet * conflict_set_create | ( | void | ) |
#include <include/conflict.h>
Create an empty conflict set.
| void conflict_set_destroy | ( | ConflictSet * | cs | ) |
#include <include/conflict.h>
Destroy a conflict set and free all owned memory.
| cs | Conflict set to destroy. Passing NULL is safe. |
| uint32_t conflict_set_unresolved_count | ( | const ConflictSet * | cs | ) |
#include <include/conflict.h>
Return the number of unresolved conflicts in the set.
| cs | Conflict set to query. |