45typedef enum VersionOp {
192ParserSnapshot *create_base_snapshot(
const char *grammar_file,
char **error);
203bool semver_parse(
const char *str,
SemVer *out);
221void semver_destroy(
SemVer *v);
A dependency declaration from one module to another.
bool optional
If true, unsatisfied is not an error.
char * module_name
Target module name (owned)
uint32_t nconstraints
Number of entries in constraints.
VersionConstraint * constraints
Array of version constraints.
uint8_t merkle_root[32]
Expected content hash (zero = any)
A parser module: a named, versioned unit of grammar with explicit dependency, export,...
char ** exports
Symbol names exported by this module.
char * name
Unique module name (owned)
char ** imports
Symbol names imported from other modules.
ParserDependency * dependencies
Array of dependencies (owned)
SemVer version
Module version.
uint32_t nimports
Length of imports.
uint32_t nexports
Length of exports.
uint32_t ndependencies
Length of Dependencies.
uint32_t lookahead_count
Number of entries in yy_lookahead.
struct symbol ** symbols
Array of pointers to symbol structs.
uint16_t * yy_default
Default action for each state.
uint64_t version
Monotonically increasing version number.
void * jit_ctx
Reserved for a future JIT compilation context that can cache machine code generated from the action t...
atomic_uint_fast32_t refcount
Atomic reference count.
int16_t * yy_shift_ofst
Per-state offset into yy_action for shifts.
uint32_t nterminal
Number of terminal symbols.
uint32_t nsymbol
Total number of symbols.
uint32_t nrule
Total number of rules.
uint8_t merkle_root[32]
Content hash of grammar data.
struct state ** states
Array of pointers to state structs.
uint32_t action_count
Number of entries in yy_action.
uint32_t nstate
Total number of parser states.
struct rule * rules
Linked list of production rules.
uint16_t * yy_lookahead
Lookahead values parallel to yy_action.
ParserModule *uint64_t create_time_ns
< Owning module metadata, or NULL
uint16_t * yy_action
Combined shift+reduce action array.
int16_t * yy_reduce_ofst
Per-state offset into yy_action for reduces.
A parsed semantic version: major.minor.patch with optional prerelease label (e.g.
uint32_t major
Major version component.
uint32_t minor
Minor version component.
uint32_t patch
Patch version component.
char * prerelease
Prerelease label (malloc'd; NULL if absent)
A single version constraint on a dependency, e.g.
SemVer version
Reference version for the operator.
VersionOp op
Constraint operator.