lexical analyser code
$10-30 USD
Paiement à la livraison
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> ::="&&"|"||"|"<"|">"|"=="|"+" |""| "*" | "/" | "%"
Nº du projet : #30155127
À propos du projet
Décerné à:
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
10 freelances font une offre moyenne de 26 $ pour ce travail
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. Plus
Dear, sir. I am a software engineer. I've just read your requirement, and I am ready for you now. Thank you
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 Plus
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 Plus
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 Plus
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
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, Plus