Skip to content

A simple lexical analyzer and parser for Go's if-else statement

Notifications You must be signed in to change notification settings

admiralkaiz/go-lexical-analyzer-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>
}

About

A simple lexical analyzer and parser for Go's if-else statement

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages