contents[]rune// Contents of the node - the length of this would only be >1 if the node represents a character class
contents[]rune// Contents of the node - the length of this would only be >1 if the node represents a character class
startRepsint// Minimum number of times the node should be repeated - used with numeric specifiers
startRepsint// Minimum number of times the node should be repeated - used with numeric specifiers
endRepsint// Maximum number of times the node should be repeated - used with numeric specifiers
endRepsint// Maximum number of times the node should be repeated - used with numeric specifiers
isDotbool// Whether or not the current node represents a 'dot' metacharacter
allCharsbool// Whether or not the current node represents all characters (eg. dot metacharacter)
except[]rune// For inverted character classes, we match every unicode character _except_ a few. In this case, allChars is true and the exceptions are placed here.
}
}
// Creates a new escaped node - the given character is assumed to have been preceded by a backslash
// Creates a new escaped node - the given character is assumed to have been preceded by a backslash