Documentation ¶
Index ¶
Constants ¶
View Source
const ( OPERATOR = 0x1000000 /* Bit set in all operators */ START = OPERATOR + 0 /* Start, used for marker on stack */ RBRA = OPERATOR + 1 /* Right bracket, */ LBRA = OPERATOR + 2 /* Left bracket, */ OR = OPERATOR + 3 /* Alternation, | */ CAT = OPERATOR + 4 /* Concatentation, implicit operator */ STAR = OPERATOR + 5 /* Closure, * */ PLUS = OPERATOR + 6 /* a+ == aa* */ QUEST = OPERATOR + 7 /* a? == a|nothing, i.e. 0 or 1 a's */ ANY = 0x2000000 /* Any character but newline, . */ NOP = ANY + 1 /* No operation, internal use only */ BOL = ANY + 2 /* Beginning of line, ^ */ EOL = ANY + 3 /* End of line, $ */ CCLASS = ANY + 4 /* Character class, [] */ NCCLASS = ANY + 5 /* Negated character class, [^] */ END = ANY + 0x77 /* Terminate: match found */ ISATOR = OPERATOR ISAND = ANY QUOTED = 0x4000000 /* Bit set for \-ed lex characters */ )
* Actions and Tokens * * 0x10000xx are operators, value == precedence * 0x20000xx are tokens, i.e. operands for operators
View Source
const DCLASS = 10 /* allocation increment */
View Source
const NLIST = 127
View Source
const NPROG = 1024
View Source
const NRange = 10
View Source
const NSTACK = 20
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.