Compute item set transitions
This commit is contained in:
parent
100ab56779
commit
99c216f78a
23 changed files with 250 additions and 55 deletions
|
|
@ -15,7 +15,18 @@ Describe(pattern_rules) {
|
|||
character('c')
|
||||
})->to_string()));
|
||||
};
|
||||
|
||||
|
||||
It(parses_character_classes) {
|
||||
pattern_ptr rule = pattern("\\w-\\d");
|
||||
AssertThat(
|
||||
rule->to_rule_tree()->to_string(),
|
||||
Equals(seq({
|
||||
char_class(CharClassTypeWord),
|
||||
character('-'),
|
||||
char_class(CharClassTypeDigit)
|
||||
})->to_string()));
|
||||
};
|
||||
|
||||
It(parses_choices) {
|
||||
pattern_ptr rule = pattern("ab|cd|ef");
|
||||
AssertThat(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue