A simple lexical analyzer and parser for Go's if-else
statement. Created for university project for CII2L3 (Automata Theory) course.
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>
}