HTLexer constructor
HTLexer({
- HTLexicon? lexicon,
Implementation
HTLexer({HTLexicon? lexicon}) : lexicon = lexicon ?? HTDefaultLexicon() {
_identifierStartRegExp =
RegExp(this.lexicon.identifierStartPattern, unicode: true);
_identifierRegExp = RegExp(this.lexicon.identifierPattern, unicode: true);
_numberStartRegExp = RegExp(this.lexicon.numberStartPattern);
_numberRegExp = RegExp(this.lexicon.numberPattern);
_digitRegExp = RegExp(this.lexicon.digitPattern);
_hexNumberRegExp = RegExp(this.lexicon.hexNumberPattern);
}