Sem 2 2022/2034 June, 2023
Programming Project : Lexical Analysis using JFlex.
For the first task of the frontend, you will use JFlex to create a scanner for the Ruby on Rails programming language. Your scanner will transform the source file from a stream of bits and bytes into a series of meaningful tokens containing information that will be used by the later stage of the compiler. You are also required to study Ruby on Rails language, in order to list all the tokens used in the language.
Below is an example of Ruby on Rails statements,
# !/usr/bin/ruby –w
time1 = Time.new
while $i < $num do
puts (“Inside the loop i = #i”)
puts “Current Time : “ + time1.inspect
This project is worth 20% of your overall course grade. Most of the points will be allocated for correctness with some consideration for design and readability. The prove of the execution of your lexical analyser is compulsory for every one of you. Submit a print screen of you running program with a minimum of 3 set of input files as well as your entire project files. Be sure to include a REPORTING file, which is your chance to explain your project.