Skip to content

Commit 6884f55

Browse files
committed
project progress to readme
1 parent 5f106f8 commit 6884f55

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
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()!

src/lexericals/lexer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::lexericals::tokenizer::{Token, Tokenkind};
33
#[derive(Debug)]
44
pub 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

0 commit comments

Comments
 (0)