Concluído

Recursive descent parser

Code:

<elist> -> <elist>,<e>|<e>

<e> -> <n>^<e>|<n>

<n> -> <n><d>|<d>

<d> -> 0|1|2|3|4|5|6|7|8|9

pseudocode : -

Code:

procedure RDPARSER;

while NOT EOF do

SUCCEEDED = TRUE;

GET_INP_LINE; //reads in the next input line

GET_NEXT_SYMBOL; //returns the next input symbol

ELIST;

if SUCCEEDED

then SUCCESS_MESSAGE;

else FAILURE_MESSAGE enif

endwhile

end RDPARSER

Code:

procedure ELIST;

E;

if SUCCEEDED

then ELIST_TAIL endif

end ELIST;

Code:

procedure ELIST_TAIL;

if EOL

then print E_Value

else if next_inp_symbol = ","

then print E_Value;

GET_NEXT_SYMBOL;

ELIST;

else SUCCEEDED = FALSE endif

endif

end ELIST_TAIL;

Code:

procedure E;

N_value = 0;

N;

if SUCCEEDED

then ETAIL endif

end E;

Code:

procedure ETAIL

if(NOT((next_inp_symbol = ",") OR EOL))

then if next_inp_symbol = '^'

then GET_NEXT_SYMBOL;

E;

E_value = N_value ** E_value;

else SUCCEEDED = FALSE endif

else E_value = N_value enidf

end ETAIL;

Code:

procedure N;

D;

if SUCCEEDED

then N_value = N_value * 10 + D_value;

NTAIL endif

end N;

Code:

procedure NTAIL;

if(NOT((next_inp_symbol = '^' | ',') OR EOL))

then N endif

end NTAIL;

Code:

procedure D;

if next_inp_symbol is a digit

then compute D_value;

GET_NEXT_SYMBOL

else SUCCEEDED = FALSE endif

end D;

Habilidades: Java, Arquitetura de software

Veja mais: recursive, eof, recursive descent, java parser, java code recursive descent parser, input descent parser java, java source code parser descent recursive code project, descent recursive parser code java, recursive descent parser code java, recursive descent java, recursive descent parser code, recursive input, recursive descent parser java, recursive descent parser, java recursive descent parser, java recursive, java parser architecture, digit software, recursive descent parser java, pseudocode java

Acerca do Empregador:
( 3 comentários ) Khobar, United States

ID do Projeto: #6701140

Concedido a:

Nikhil3398

Hi.. I am Nikhil. I have working experience of 3+ year in C & C++, and Java Development. I have done work on: 1. Data Structure like: Set, Vector, Linked list, Stack, Tree(Binary Search Tree, B+ Tree, AVL Tree) Mais

$25 USD em 1 dia
(5 Comentários)
3.3

3 freelancers estão ofertando em média $33 para esse trabalho

umarbsse

HI As a Software Engineer and programmer i can do this task within 1days.I have 3years progamming experience and developed web site like [login to view URL] and developed many desktop application like wordpress aut Mais

$50 USD em 1 dia
(20 Comentários)
4.5
manish434k

Hi, I am an experienced Java developer with good website development and database skill. I would like to do your Project. As a freelancer I was not very active but I would like you to consider me for the project Mais

$25 USD em 1 dia
(1 Comentário)
0.8