Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 488 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 488 Bytes

CII2L3: Automata Theory - Lexical Analyzer and Parser Project

A simple lexical analyzer and parser for Go's if-else statement. Created for university project for CII2L3 (Automata Theory) course.

Grammar

Here are the examples of if-else statement in Go programming language:

if <boolean_variable> == <value> {
  <main_action>
} else {
  <alternate_action>
}

It can be simplified as:

if <boolean_variable> {
  <main_action>
} else {
  <alternate_action>
}