lexical analyser code

Dokončeno Zveřejněno před 2 lety K zaplacení v momentě doručení
Dokončeno K zaplacení v momentě doručení

this project requirment is to write a lexical analyser code for the following context free grammar:

<program> ::= <main class> <class declaration>*

<main

class> ::=

=class <identifier> "{" public static void main "("

")" "{" <statement>* "}" "}"

<class

declaration> ::=

class <identifier> [extends <identifier>]

"{" <declaration>* "}"

<declaration> ::= <variable declaration> | <method declaration>

<method declaration> ::=public <type> <identifier> "(" [ <formals> ] ")"

"{" <statement>* "}"

<variable declaration> ::= <type> <identifier> ";"

<formals> ::= <type> <identifier> ( "," <type> <identifier> )*

<type> ::= <simple type> | <array type>

<simple type> ::= int | boolean | void | <type identifier>

<array type> ::= <simple type> "[" "]"

<type identifier> ::= <identifier>

<statement> ::= assert "(" expr ")" |

<local variable declaration> |

"{" <statement>* "}" |

if "(" <expr> ")" <statement> |

if "(" <expr> ")"

<statement> else <statement> |

while "(" <expr> ")" <statement> |

[login to view URL] "(" <expr> ")" ";" |

<lvalue> "=" <expr> ";" |

return <expr> ";" |

<method invocation> ";"

<local variable declaration> ::= <variable declaration>

<method invocation> ::= <expr> "." <identifier> "(" [ <expr>

("," <expr>)* ] ")"

<lvalue> ::= <expr>

<expr> ::= <expr> <binary operator> <expr> |

<expr> "[" <expr> "]" |

<expr> "." length |

new <simple type> "[" <expr> "]" |

new <type identifier> "(" ")" |

"!" <expr> |

"(" <expr> ")"|

<identifier> | <integer literal> |

this | true | false |

<method invocation>

<binary

operator> ::="&&"|"||"|"<"|">"|"=="|"+" |""| "*" | "/" | "%"

C++ programování Java

Identifikační číslo projektu: #30155127

O projektu

10 nabídek Projekt na dálku Aktivní před 2 lety

Uděleno uživateli:

Marlely23

HELLO DEAR CLIENT I have gone through your project details and the work is DOABLE since its within my area of EXPERTISE.I will tackle are required guideline to deliver desired goal Please consider my bid. THANKS

$20 USD za 1 den
(5 recenzí)
3.2

10 Freelnceři na tento projekt zveřejňují nabídky v průměru $26

ExpertSoul

Hello, I've complete MS Software Engineering. I've 5-Year experience in Java development and algorithm implementation. My Core Expertise in Java - C++ - C - object-oriented - Data Structure - Swing - OpenGL - JavaFX. Další

$50 USD za 1 den
(155 Recenzí)
6.6
danilamakarov01

Dear, sir. I am a software engineer. I've just read your requirement, and I am ready for you now. Thank you

$10 USD za 1 den
(83 Recenzí)
6.0
Muhammadsamran

Hello Sir/ Ma’am A skilled full stack developer, I have rich experience in JAVA,C, C++, C#, Python, .NET , MYSQL, SQL, IONIC , MATLAB, ANDROID,PHP and ARDUINO. I am very confident with my skills and I'd like to hel Další

$20 USD za 1 den
(29 Recenzí)
5.4
ITtechsol

Hi I have checked your project description. I have excellent programming and development skills. Contact me with all the details and requirements for your project for further discussion. I will provide you dedicated s Další

$50 USD za 1 den
(4 Recenzí)
3.7
shaojin

Hi! I am happy to put my bid on here. I have read your requirement carefully and I am interested in this project. I have a tons of experience in C /C++/C# and Python. If you`ll hope to work with me, I am confident to p Další

$30 USD za 1 den
(6 Recenzí)
2.8
AKACoder

Hello, I'm a language implementer and a know Java well. I can build the syntax analyser for you CFG without problems. Please, refer to my profile for a list of my expertises. Thanks. Regards, antonio

$20 USD za 7 dní
(4 Recenzí)
1.9
asciencioalex

I am an highly experienced freelancer. I am offering services in Web Applications, Machine Learning, Deep Leaning, Arduino programming , Raspberry pi Android app development, Data Science, Natural Language Processing, Další

$20 USD za 7 dní
(0 Recenzí)
0.0