This assignment is broken down into 4 portions: Specification Document ( 4 points )Lexical Analyzer ( 2 points )Syntax Analyzer ( 2 points )Semantic Analyzer ( 2 points )Where a your specification...

This assignment is broken down into 4 portions:
Specification Document ( 4 points )Lexical Analyzer ( 2 points )Syntax Analyzer ( 2 points )Semantic Analyzer ( 2 points )Where a your specification document must fully explain the language you have designed:
Rules for all literal valuesDescription of every data type that is provided with the languageRules for how variables are created, operated upon, expressed, and evaluatedRules for the control structuresFunctions/methods/subprograms and the rules around themKeywords and Special symbols and all of their functionSemantics for each syntax rule that is defined.Instructions of how to create valid code.The specification document must also define every tradeoff the language designers made while making the decisions for all of the above statements.
Each Analyzer developed must be turned in as the source code to be run along with test files for correct and incorrect examples of inputs.
To fully describe the semantics and the syntax of the language you are defining you must understand how these must be properly defined and expressed in a language.
You must also have some representation of a symbol table.
___________________________________________________________
NOTES TO LOOK OUT FOR
Specification DocumentKeyword ListGrammars for who key words, statements and expression and over all syntax are evaluatedA description of the semantics ( some combination of the following for each grammar rule )DenotationOperationalAttribute GrammarA list of data types and the operations related to them ( each operation requiring a syntax rule)Lexical analyzer the takes in a source file ( extension for your language optional ) and tokenizes all lexemes that fit in your created languageIdentifiersKey wordsoperatorsliteralsstringintegerrealBooleanA syntax analyzer that takes in tokens to determine if syntax errors exist in your programming language based off of rules provided.A semantics analyzer to determine if semantic rules have been broken.**Language must be able to handle multiplication, division, subtraction, and addition
** Must include integers, some real number, strings, booleans
** Must be able to form more complex structures
**All design choices must be explained for its benefits and drawbacks
May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here