TextMateLib 1.0
Modern C++ implementation of the TextMate syntax highlighting engine
Loading...
Searching...
No Matches
tml::RuleId Struct Reference

Opaque identifier for a grammar rule. More...

#include </home/runner/work/TextMateLib/TextMateLib/packages/tml-cpp/src/types.h>

Public Member Functions

 RuleId (int value)
 Create a RuleId with the given value.
 
bool operator== (const RuleId &other) const
 Equality comparison.
 
bool operator!= (const RuleId &other) const
 Inequality comparison.
 

Public Attributes

int id
 Internal rule identifier (positive for normal rules, negative for special rules)
 

Detailed Description

Opaque identifier for a grammar rule.

RuleIds are small integers assigned during grammar compilation. They uniquely identify rules within a grammar for state tracking.

Definition at line 82 of file types.h.

Constructor & Destructor Documentation

◆ RuleId()

tml::RuleId::RuleId ( int  value)
inlineexplicit

Create a RuleId with the given value.

Parameters
valueRule identifier value

Definition at line 87 of file types.h.


The documentation for this struct was generated from the following file: