Skip to content

Syntax analyzer that recognizes a language with only two tokens (a left one and a right one). A valid expression must contain the same number of the two tokens. A valid expression as read from the left must not contain more right tokens that left ones.

Notifications You must be signed in to change notification settings

Maxcode123/syntaxis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

syntaxis

Syntax analyzer that recognizes a language with only two tokens (a left one and a right one). A valid expression must contain the same number of the two tokens. A valid expression as read from the left must not contain more right tokens than left ones.

Compile & run

Run and tested using g++ compiler, version 9.3.0
Running g++ syntax.cpp -o syntax && ./syntax outputs the below:
image
Then the user can enter a token stream and see the stack content, state and remaining stream in each step.
image

About

Syntax analyzer that recognizes a language with only two tokens (a left one and a right one). A valid expression must contain the same number of the two tokens. A valid expression as read from the left must not contain more right tokens that left ones.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages