종료

Write some Software

The user enter a code in Mini C language (described below). The analyser tokenizes the code into

tokens according to white spaces and symbols. Each token is assigned to a valid type and line

number. The description of types are below. You have to write a regular expression for each type.

For assigning a type for a token you can use the following algorithm:

Your program should have one GUI interface that have:

text box to type a code by the user. Textbox to show the errors if any. 2 buttons one for lexical

analyser and the other for syntax parsing. An option to upload a text file.

 The lexical analyser reads any code from a textbox or a file (note that multi-spaces

are accepted as one space for tokenization)

 You should use regular expressions to identify types of the tokens.

 Output: Identify the lexical errors with a clear message.

 Output: a list of (line number, token, type) should be generated in a text file with all

errors exist.

 The user can modify the code from the screen and rescan again.

Note: This phase concerns on the tokens regardless the syntax structure of the statements. For

example: the tokens in a statement (x int =5;) are accepted; but one token is not accepted in (3int

x=5;) as 3int is not accepted in all DFA we have. Thus you should report a lexical error with line

number.

Mini C language:

This language is a subset of C language just to practice compiler design process. It contains a

set of primitive types (that you have to write a regular expression for each) and other types

that will be used in the grammars in the syntax phase.

Primitive types: Digit, letter, INT_NUM, FLOAT_NUM, ID, Void

STR is a type of string which has numbers/spaces/letters/symbols

Token *\ Type: END COMMENT. Token: /* Type: BEGIN COMMENT.

Token: if Type: IF. Token: Token: * Type: MULT. Token else Type: ELSE. And so on..

The syntax is similar to C language that has:

Control statements (if, loops,…) and nested statements

Declarations will be in format (variables: type) all variables must be declared at the beginning of the

program or function.

Function will be in format (function_name: type(list of parameters){}), recursive call is also accepted

Blocks of code will be in format { code }

It is not case sensitive (small/capital letters are the same).

The project submission requirements:

 A report with a brief description of the compiler phases.

 Regular expression and types of the programming language

 Snapshots of the lexical analyser input and output.

 The context free grammars for the syntax using the description and the start symbol will be:

Program -> Proram_name srart: Declarations functions body

 The code.

 A video of how to run the program with correct and incorrect input.

Ex:

TestProgram start:

Var1, Locvar1,age Integer

var1:=5

func1: Void (var2 integer) {

print ( var2)

}

Locvar1:=var1+6-2

enter( age)

if (4+2 == var1*2) then {

print(“good”, age)

func1(var1)

}

기술: PHP, 소프트웨어 아키텍처

확대 보기: Write some Software front end, software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, software write websites idea, software write book images, software write books, write end year letter non profit donation, develop software font end aspnet end sqlserver oracle, software write protection, free software write book, php extract numbers string phone number, write program generates phone numbers visual basic, software write book, write program print random numbers, extracts numbers string stepping vb6

고용주 소개:
( 1 리뷰 ) rghady, Saudi Arabia

프로젝트 ID: #13815913

이 프로젝트의 입찰 현황은 다음과 같습니다. 입찰자: 7명, 평균 입찰가: $284

shreeyait

Hello Sir, Hope you are fine there. We are having good experience with CorePHP projects and the reason we came across here to give the best output to your project with supreme quality. We have develope 더 보기

$333 USD (10일 이내)
(56 리뷰)
6.8
TopTower22

hello,how are you. i read your bid carefully. i am lexical, grammer & syntax parsing expert and have full experience for 10 years. c/c++ language is my top skill. i can provide most quality and high speed. if you w 더 보기

$155 USD (3일 이내)
(30 리뷰)
5.8
wangbeizou

Hello. How are you today. I have read and understood the project. I have strong knowledge in Data structures and Algorithms. And I'm expert in Java ,C/C++,C#, Python ,PHP etc. I'm interested this project. So, fi 더 보기

$155 USD (3일 이내)
(60 리뷰)
5.6
$55 USD (3일 이내)
(28 리뷰)
5.9
schoudhary1553

Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind o 더 보기

$250 USD (3일 이내)
(18 리뷰)
5.1
umarbsse

HI. I am Softwares engineer and programmer. I had completed more than 60+ projects. I also worked with UN Projects. I am ready to start that project. If you have any questions you may ask. Regards Umarbsse

$155 USD (1일 이내)
(45 리뷰)
5.3
febulascode9

I can do [login to view URL] u need?

$136 USD (4일 이내)
(2 리뷰)
0.0
vw8331937vw

hello dear, i'm a c# .Net software developer with sql server experience in accounting applications

$888 USD (35일 이내)
(0 리뷰)
0.0