Em Andamento

Recursive Descent Parsing in C++ and Java | #2

I need the following 'Recursive Descent Parsing' problem solved in BOTH C++ and Java. Full source code for both and console screen shots of it working are required.

Using the simplest possible technique to implement a recursive descent parser that recognizes strings in this language. Input should be from a file called in .dat and output should be to the console.

BNF grammar:

------------------------

A -> I = E

E -> T + E | T - E | T

T -> P * T | P / T | P

P -> I | L | (E)

I -> a | b | ... | y | z

L -> 0 | 1 | ... | 8 | 9

------------------------

An example session might look like this:

------------------------

String read from file: a=a+b-c*d

The string "a=a+b-c*d" is in the language.

String read from file: a=a**b++c

The string "a=a**b++c" is not in the language.

------------------------

IMPORTANT: You will not have to handle whitespace when parsing the string, i.e. " " and similiar are illegal characters in this language.

Habilidades: Programação C, Java

Ver mais: recursive descent parser java, recursive descent parser, recursive descent parser code, java recursive descent parser, recursive descent parser source code, bnf recursive descent parser java, source code recursive descent parser java, recursive descent parser using java source code, input descent parser java, recursive descent parser java source, code recursive descent parsing, recursive descent parser code language, recursive descent parser example, recursive descent parsing code, source code recursive descent parser, recursive descent java source code, the string problem, t$c, string source code java, string problem, string b, recursive problem, parsing input, c read example, recursive descent parsing source code

Acerca do Empregador:
( 1 comentário ) Krakow, Poland

ID do Projeto: #533416

Premiar a:

leiradel

I'm the author of this article where a full expression parser is implemented in Java: [url removed, login to view] I can do the parser in both languages for you in no time, and they'll work just l Mais

$120 USD em 1 dia
(8 Avaliações)
4.1

5 freelancers estão ofertando em média $100 para este trabalho

srinichal

I can code this task

$160 USD in 2 dias
(55 Comentários)
5.9
archanabhanot

I am ready to work on this [url removed, login to view] provide me the exact [url removed, login to view] may negiotiate the bid [url removed, login to view] once If you are not satisfied with the work please do not pay.I will not charge.

$50 USD in 10 dias
(0 Comentários)
0.0
manoot

I have masters in computer science. I'll do your project the best way.

$50 USD in 3 dias
(0 Comentários)
0.0
crazysoft127

I have made the Java program

$119 USD in 0 dias
(0 Comentários)
0.0