Em Andamento

Generate AST for expressions

Generate AST. Operator precedence parsing should be used to generate the AST for expressions. /* Function to check expression syntax and build AST * using operator precedence grammar for expressions */ boolean checkExpression(ASTNode** node) { Stack operandStack; Stack operatorStack; ASTNode* aNode; checkFactor(&aNode); /* check factor */ [url removed, login to view](aNode); while (isOperator(nextToken)) { if ([url removed, login to view]() || (precedence(nextToken) > precedence([url removed, login to view]()))) { [url removed, login to view](nextToken); getNextToken(); } else /* evaluate stack as needed and then push operator*/ { while (![url removed, login to view]() && (precedence(nextToken) <= precedence([url removed, login to view]()))) { aNode = (generateExpressionNode(operatorStack, operandStack)); [url removed, login to view](aNode); } [url removed, login to view](nextToken); getNextToken(); } checkFactor(&aNode); [url removed, login to view](&aNode); } /* clean up the stack */ while (![url removed, login to view]()) { aNode = (generateExpressionNode(operatorStack, operandStack)); [url removed, login to view](aNode); } /* link generated node into AST */ node = [url removed, login to view](); return true; } /* WARNING: UNCHECKED CODE; USE WITH CARE */

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

WINDOWS XP

Habilidades: Programação C, Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: using expressions, syntax programming, syntax in programming, stack programming, programming syntax, programming operator, programming expression, node programming, expression in c programming, c programming syntax, c programming operator, c programming boolean, boolean programming, h4 working, h4 work, using c to generate, expressions, ast, program using stack, grammar syntax, generate node, top stack, node form, code generate code php form, generate code

Acerca do Empregador:
( 16 comentários ) United States

ID do Projeto: #3009148

Premiar a:

esegura

See private message.

$34 USD em 3 dias
(22 Avaliações)
4.8

3 freelancers estão ofertando em média $32 para este trabalho

dcrs

See private message.

$19.55 USD in 3 dias
(11 Comentários)
4.6
yulkspbru

See private message.

$42.5 USD in 3 dias
(1 Comentário)
0.0