Skip to content

Commit

Permalink
Add TODO(#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
datawater committed Jun 24, 2024
1 parent e4d6da8 commit ec33fe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pgn/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ use litemap::LiteMap;
use pgn_lexer::parser::Token;
use std::collections::VecDeque;

// TODO(#16): Implement tests for ast generating
// TODO: Oh shit, currently this program uses 12x the memory of the input file :sob: maybe reduce that ??

#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub enum PgnToken<'a> {
Token(Token<'a>),
Expand Down Expand Up @@ -59,7 +62,6 @@ macro_rules! push_token {
};
}

// TODO: AST building is currently done in plain strings only. Decide wether or not to convert it to binary format straight away, or do it with multi-threading after the fact
fn next_token<'a>(
tokens: &mut VecDeque<Token<'a>>,
tree: &mut Vec<PgnGame<'a>>,
Expand Down

0 comments on commit ec33fe4

Please sign in to comment.