正在加载图片...
Syntax Analyzer A Syntax Analyzer creates the syntactic structure(generally a parse tree)of the given program. A syntax analyzer is also called as a parser. .A parse tree describes a syntactic structure. assgstmt identifier expression In a parse tree,all terminals are at leaves. newval expression expression All inner nodes are non-terminals in a context free grammar. identifier number oldval 12 CS308 Compiler Theory 6Syntax Analyzer • A Syntax Analyzer creates the syntactic structure (generally a parse tree) fh i o t e given program. • A syntax analyzer is also called as a parser. • A parse tree describes a syntactic structure. assgstmt identifier := expression • In a parse tree, all terminals are at leaves. newval expression + expression All i d t i li identifier number • All inner nodes are non-terminals in a context free grammar. oldval 12 CS308 Compiler Theory 6
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有