Skip to content

Childcity/SimpleLanguageParserGUI

Repository files navigation

SimpleLanguageParser GUI

Implementation of GUI for SimleLanguageParser project

Algorithm of this parser

Input Text       (written with my own syntax)

   |
  \|

Lexical Analyzer     (devide text on lexems and check all allowed symbols)

  |
 \|

List of Lexems      ( intermediate representation of input lexems as json list)

  |
 \|

Syntactic Analyzer    (check on valid syntax and build AST tree as result)

  |
 \| 

  AST Tree      ( intermediate representation of input program)\

  |
 \|

  Reverse
Polish Notation     (well, no comments)
and Executing

Screenshots of running program you can see below:

When Lexical Analyzer and Syntactic Analyzer parsed without errors and input program executed (in Console)

without_errors without_errors

When Lexical Analyzer found "unexpected token '&'" in line 1

lex_error

When Syntactic Analyzer found "undeclared token 'writ' "

syn_error

When Syntactic Analyzer found "undeclared token 'sumi' "

syn_error

AST tree of all program after success syntactic analyze

ASTree realization ast_tree

About

Implementation of GUI for SimleLanguageParser project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published