Miss Natalia

(14)

$20/per page/Negotiable

About Miss Natalia

Levels Tought:
Elementary,High School,College,University

Expertise:
Accounting,Business & Finance See all
Accounting,Business & Finance,Calculus,Computer Science,Environmental science,Health & Medical Hide all
Teaching Since: Apr 2017
Last Sign in: 360 Weeks Ago, 1 Day Ago
Questions Answered: 6064
Tutorials Posted: 6070

Education

  • Doctor of Education in Educational Leadership with a Specialization in Educational Technology
    Phoniex University
    Oct-1999 - Nov-2005

Experience

  • HR Executive
    a21, Inc.
    Nov-1998 - Dec-2005

Category > Business & Finance Posted 03 May 2017 My Price 10.00

Show an example of why the following grammar is Ambiguous.

Write a set of BNF grammar rules that will parse a programming language that can have variable type declarations such where the variable has name and a type which can be either integer or boolean, and optionally has a constant default value:

E.g.

var i : integer;

var j : integer = 6;

var b : boolean;

var b2 : boolean = true;

var b3 : boolean = false;

 

2.

Show an example of why the following grammar is Ambiguous.

<program>           -> <stmts>

<stmts>               -> <stmts> ; <stmts> | <assignment>

<assignment>       -> <var> = <expr>

<var>                   -> a | b | c | d

<expr>                 -> <term> + <term> | <term> - <term>

<term>                 -> <var> | const

Answers

(14)
Status NEW Posted 03 May 2017 09:05 AM My Price 10.00

Sol-----------uti-----------ons----------- fi-----------le ----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r y-----------our----------- in-----------ter-----------est----------- an-----------d b-----------uyi-----------ng -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I-----------

Not Rated(0)