Syntax analysis. How ScriptBasic performs Syntax analysis. What is the role of syntax analysis What is the assumed syntax of a program What tables drive syntax analysis Creating the tables Pseudo terminals. Contents. Who this presentation is for. Curious (why things happen?)
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
How ScriptBasic performs Syntax analysis
NOT for those, who just
These are the simplest pseudo-terminal symbols, because they are real terminals, just hard to write into a text file.
Handles an expression or a comma separated list of expressions and creates nodes.
These are simple terminals.
These do not generate code, have only side effects defining a constant. (cval defines a constant for the name last appeared for cname)
These are used instead of code bracketing. There is a jump stack where node pointers are pushed and taken from.