summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNanoTech2016-12-07 00:33:48 -0600
committerNanoTech2017-03-10 23:48:28 -0600
commitbae6662c9b04a158f4e267d329bd402c1667fca3 (patch)
treeff55a5c5efa108e2310a79091ed122b68bf63196 /src
parent7ae2570543db9e97e8f10976365eabcf8541afb8 (diff)
Remove unused and commented symbol lexing code
Diffstat (limited to 'src')
-rw-r--r--src/lexer.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lexer.rs b/src/lexer.rs
index 1f54a52..0ebac3e 100644
--- a/src/lexer.rs
+++ b/src/lexer.rs
@@ -84,38 +84,6 @@ pub enum LexicalError {
pub type Spanned<Tok, Loc, Error> = Result<(Loc, Tok, Loc), Error>;
-/*
-macro_rules! one_of_chars {
- ($c:expr, [$($cs:pat),*]) => {
- match $c {
- $($cs => true),*,
- _ => false,
- }
- }
-}
-
-fn is_symbol(c: char) -> bool {
- one_of_chars!(c, [
- '!',
- '&',
- '(',
- ')',
- '*',
- '+',
- '-',
- '/',
- ':',
- '=',
- '>',
- '\\',
- '|',
- '∧',
- 'λ'
- ])
-}
-named!(symbol<&str, &str>, take_while1_s!(is_symbol));
-*/
-
#[allow(dead_code)]
fn is_identifier_first_char(c: char) -> bool {
c.is_alphabetic() || c == '_'