File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# illusionlang
2- the illusion interpreter
2+
3+ the illusion interpreter
4+
5+ ## the lexer and tokeniser pharse
6+
7+ done()!
8+
9+ ## the parsing pharse
10+
11+ working()!
12+
13+ ## Evaluation pharse
14+
15+ todo()!
16+
17+ ## standard libeary and fuctions
18+
19+ todo()!
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use crate::lexericals::tokenizer::{Token, Tokenkind};
33#[ derive( Debug ) ]
44pub struct Lexer {
55 pub input : Vec < char > ,
6- pub current : usize ,
6+ // pub current: usize,
77 pub next : usize ,
88 pub ch : char ,
99}
@@ -12,7 +12,7 @@ impl Lexer {
1212 pub fn new ( input : & str ) -> Lexer {
1313 let mut lex = Lexer {
1414 input : input. chars ( ) . collect ( ) ,
15- current : 0 ,
15+ // current: 0,
1616 next : 0 ,
1717 ch : '\0' ,
1818 } ;
@@ -27,7 +27,7 @@ impl Lexer {
2727 } else {
2828 self . ch = self . input [ current_pos] ;
2929 }
30- self . current = current_pos;
30+ // self.current = current_pos;
3131 self . next += 1 ;
3232 }
3333
You can’t perform that action at this time.
0 commit comments