Skip to content

cruzj6/Syntax-Analyzer

Repository files navigation

Syntax-Analyzer

This project analyzes the syntax of a language I created. The user writes the "code" in the input.txt file that is included and then runs the program. The program will tell you any errors or anywhere it expected an identifier or it will tell you that your syntax is perfect for the language. Below I included the EBNF for how the grammer works for the language and an example of a breakdown of the grammer. The original idea I had for this project was to take that grammar and tell you how you are doing in school and what you could improve. For the sake of time and getting the project in on time it is more simplistic when it is actually run, but it gives an idea of where it could head if I further implemented some of my ideas. The main purpose of the project and assignment was that it analyzes the syntax, which it successfully does, the other ideas and uses of the program were just me having some fun with it.

EBNF: Top Level: 

Multiuse rules:  pencil | pen | ruler | calculator | notebook| laptop |professor | book  A|B|C|D|E|F  great | bad | efficient | useful | reflective

Stuff done in class itself:   I_need_a { and } for_my   notes | writing | problems | answers | questions I_have_a in_participation [my_grade_is ]

Stuff done at home:  also  it_is  Homework_is_due {and } [Turned_homework_in ]  tomorrow| Monday | Tuesday | Wednesday | Thursday | Friday  It_is requiring  project | paper | exercises

Example:   < solo work> I_have_a in_participation I_need_a for_my I_have_a B in_participation I_need_a pencil for_my I_have_a B in_participation I_need_a pencil for_my great writing

About

C++: Analyzes the syntax of "programs" written in the language I created the grammar for

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages