diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/stages/compiler.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stages/compiler.rs b/src/stages/compiler.rs index 7dad5e4..5ec0652 100644 --- a/src/stages/compiler.rs +++ b/src/stages/compiler.rs @@ -35,7 +35,7 @@ pub fn push_code(compilation: &mut String, source_file: &SourceFile) { } -// Extract symbol definitions from a list of semantic tokens. +// Extract symbol definitions from a list of syntactic tokens. pub struct SymbolParser { pub symbols: Vec<Symbol>, } @@ -54,8 +54,8 @@ impl SymbolParser { self.symbols.push(Symbol { name, namespace, source, role }); } - pub fn parse(mut self, semantic: &[Tracked<SyntacticToken>]) -> Vec<Symbol> { - for token in semantic { + pub fn parse(mut self, syntactic: &[Tracked<SyntacticToken>]) -> Vec<Symbol> { + for token in syntactic { match &token.value { SyntacticToken::MacroDefinition(definition) => { self.record_symbol( |