@ -8,16 +8,16 @@ import (
var whitespaceChars = [ ] rune { ' ' , '\t' , '\n' }
var whitespaceChars = [ ] rune { ' ' , '\t' , '\n' }
var digitChars = [ ] rune { '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' }
var digitChars = [ ] rune { '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' }
var wordChars = [ ] rune ( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" )
var wordChars = [ ] rune ( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" )
var LBRACKET rune = 0xF000 1
var LBRACKET rune = 0xF000 2
var RBRACKET rune = 0xF000 2
var RBRACKET rune = 0xF000 3
var ANY_CHAR rune = 0xF000 3 // Represents any character - used for states where the allChars flag is on.
var ANY_CHAR rune = 0xF000 4 // Represents any character - used for states where the allChars flag is on.
var LPAREN_CHAR rune = 0xF000 4 // Parentheses in regex are concatenated with this - it acts as a pseudio-parentheses
var LPAREN_CHAR rune = 0xF000 5 // Parentheses in regex are concatenated with this - it acts as a pseudio-parentheses
var RPAREN_CHAR rune = 0xF000 5
var RPAREN_CHAR rune = 0xF000 6
var NONCAPLPAREN_CHAR rune = 0xF000 6 // Represents a non-capturing group's LPAREN
var NONCAPLPAREN_CHAR rune = 0xF000 7 // Represents a non-capturing group's LPAREN
var ESC_BACKSLASH rune = 0xF000 7 // Represents an escaped backslash
var ESC_BACKSLASH rune = 0xF000 8 // Represents an escaped backslash
var CHAR_RANGE rune = 0xF000 8 // Represents a character range
var CHAR_RANGE rune = 0xF000 9 // Represents a character range
var specialChars = [ ] rune { '?' , '*' , '\\' , '^' , '$' , '{' , '}' , '(' , ')' , '[' , ']' , '+' , '|' , '.' , CONCAT , '<' , '>' , LBRACKET , RBRACKET , NONCAPLPAREN_CHAR }
var specialChars = [ ] rune { '?' , '*' , '\\' , '^' , '$' , '{' , '}' , '(' , ')' , '[' , ']' , '+' , '|' , '.' , concatRune , '<' , '>' , LBRACKET , RBRACKET , NONCAPLPAREN_CHAR }
// An interface for int and rune, which are identical
// An interface for int and rune, which are identical
type character interface {
type character interface {