Lex dots: .
This commit is contained in:
parent
c34064f51a
commit
c42d69bd47
3 changed files with 14 additions and 0 deletions
|
@ -8,6 +8,7 @@ pub trait Lexable {
|
|||
fn is_left_paren(&self) -> bool;
|
||||
fn is_right_paren(&self) -> bool;
|
||||
fn is_hash(&self) -> bool;
|
||||
fn is_dot(&self) -> bool;
|
||||
fn is_string_quote(&self) -> bool;
|
||||
fn is_newline(&self) -> bool;
|
||||
fn is_eof(&self) -> bool;
|
||||
|
@ -31,6 +32,10 @@ impl Lexable for char {
|
|||
fn is_hash(&self) -> bool {
|
||||
*self == '#'
|
||||
}
|
||||
|
||||
fn is_dot(&self) -> bool {
|
||||
*self == '.'
|
||||
}
|
||||
|
||||
fn is_string_quote(&self) -> bool {
|
||||
*self == '"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue