Compiler/syntax analyzer: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Minor tidy)
(We have a {{task}} macro and a {{task heading|}} macro - the second requires a vertical bar before its argument to distinguish it from the first in the current wiki implementation (and an empty argument seems meaningless))
 
Line 1: Line 1:
{{task}}Syntax Analyzer
{{task}}{{task heading|Syntax Analyzer}}


A Syntax analyzer transforms a token stream (from the [[Compiler/lexical_analyzer|Lexical analyzer]])
A Syntax analyzer transforms a token stream (from the [[Compiler/lexical_analyzer|Lexical analyzer]])
into a Syntax tree, based on a grammar.
into a Syntax tree, based on a grammar.

{{task heading}}


Take the output from the Lexical analyzer [[Compiler/lexical_analyzer|task]],
Take the output from the Lexical analyzer [[Compiler/lexical_analyzer|task]],