valhallac

Compiler for set-theoretic programming language.
git clone git://git.knutsen.co/valhallac
Log | Files | Refs | README | LICENSE

commit bb44d5a8955a79096b6944d6acd7f6c6644c148d
parent 5f94308ea77cdb81118b9eb1be4cf577a8fb33f2
Author: Demonstrandum <moi@knutsen.co>
Date:   Sun, 21 Jul 2019 17:49:33 +0100

Merge branch 'master' of github.com:Demonstrandum/valhalla

Diffstat:
Msrc/syntax/token.rs | 24+++++++-----------------
1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/src/syntax/token.rs b/src/syntax/token.rs @@ -85,21 +85,12 @@ impl Token { /// Checks if the token represents an atomic datum. pub fn is_atomic(&self) -> bool { match self.class { - TokenType::Ident => true, - TokenType::Num => true, - TokenType::Op => true, - TokenType::Sym => true, - TokenType::Str => true, - TokenType::LParen => false, - TokenType::RParen => false, - TokenType::LBrack => false, - TokenType::RBrack => false, - TokenType::LBrace => false, - TokenType::RBrace => false, - TokenType::LVec => false, - TokenType::RVec => false, - TokenType::Term => false, - TokenType::EOF => false, + TokenType::Ident => true, + TokenType::Num => true, + TokenType::Op => true, + TokenType::Sym => true, + TokenType::Str => true, + _ => false, } } @@ -130,4 +121,4 @@ impl ShowStream for Vec<Token> { let lines : Vec<String> = self.iter().map(Token::to_string).collect(); format!("[ {} ]", lines.join(",\n ")) } -}- \ No newline at end of file +}