Implement Tok::Comment

This commit is contained in:
Charlie Marsh 2022-11-06 20:43:41 -05:00
parent a5b59f3c9d
commit b6c230f3ca
4 changed files with 23 additions and 9 deletions

View file

@ -25,6 +25,7 @@ pub enum Tok {
Rsqb,
Colon,
Comma,
Comment,
Semi,
Plus,
Minus,
@ -155,6 +156,7 @@ impl fmt::Display for Tok {
Rsqb => f.write_str("']'"),
Colon => f.write_str("':'"),
Comma => f.write_str("','"),
Comment => f.write_str("#"),
Semi => f.write_str("';'"),
Plus => f.write_str("'+'"),
Minus => f.write_str("'-'"),