Netopya / COMP-442-Assignment-3

Semantic Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COMP-442-Assignment-3

Semantic Parser

This assignment is a top-down table driven symbol table constructor written in C# using .NET 4.5 as a Windows Forms application. A stand-alone executable (COMP442-Assignment3.exe) is included to run the program. The solution can be opened for analysis and the running of unit tests with Visual Studio 2015. When inputting text, it is important that line endings are in the Windows CR+LF format. All output is written to text files in the same directory as the executable file. To input code, simply enter in code in the “Code:” textbox and then click the “Analyze!” button to perform lexical and syntactic analyses, and generation of the symbol table. The tokenized output will be shown in the “Lexical Analysis” tab broken into the tokens in the “Tokens:” textbox and any errors will be shown in the “Errors:” textbox. The result of lexical analysis will be shown under the “Syntax Analysis” tab with the derivation and any error message with recovery operations. The constructed symbol table will be shown in the “Symbol Table” textbox on the “Symbol Table” tab, along with any errors in the “Errors” textbox. Furthermore, tests are defined as Visual Studio unit tests and can be run from the Test Explorer. See UnitTest1.cs, UnitTest2.cs, and UnitTest3.cs for a list of unit tests and their expected output. Sample input files with their associated output are available in the /SampleInputOutput/ folder.

About

Semantic Parser


Languages

Language:C# 100.0%