Add lexeme 'first' field, refactor and add methods
This commit is contained in:
parent
e42c67676d
commit
c53afefb67
9 changed files with 98 additions and 50 deletions
|
|
@ -15,7 +15,7 @@ impl Strike {
|
|||
|
||||
impl Parseable for Strike {
|
||||
fn probe(lexeme: &Lexeme) -> bool {
|
||||
lexeme.match_as_char('~') && lexeme.match_next_as_char('~')
|
||||
lexeme.match_char('~') && lexeme.match_next_char('~')
|
||||
}
|
||||
|
||||
fn lex(_lexeme: &Lexeme) -> Strike {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue