Exemple #1
0
 // in addition to creating the TokenType object, set the accepting state for the regex
 public TokenType(String name, Regex regex, Priority priority = Priority.Default)
 {
     this.name          = name;
     this.regex         = regex;
     this.tokenPriority = priority;
     regex.DefineTokenClass(this);
 }
 // in addition to creating the TokenType object, set the accepting state for the regex
 public TokenType(String name, Regex regex, Priority priority = Priority.Default)
 {
     this.name = name;
     this.regex = regex;
     this.tokenPriority = priority;
     regex.DefineTokenClass(this);
 }