subject

The following is a description for “JH-Lisp2”, which is a modified version of the language previously described in homework 3, problem 6:
(a) The alphabet of JH-Lisp2 consists of the open ’[’ and close ’]’ square brackets,
the digits 0-9, the underscore character ’ ’, and the letters {a, b,d, i,l, m,o, s,u, v}
(b) An operator is a substring in JH-Lisp2 containing one of the following strings:
{add, sub, mul, div, mod}.
(c) A number is a substring in JH-Lisp2 containing one or more of the digits 0-9
(d) An expression is defined as either a number or a list expression
(e) A list expression is defined by the following, in order:
i. An open bracket: ’[’
ii. An operator
iii. An underscore: ’ ’
iv. An expression
v. An underscore: ’ ’
vi. An expression
vii. A close bracket: ’]’
(f) A string in the JH-Lisp2 language is a single list expression.
An example string in this language might be [add [mod 4 3] 21]
Give a context-free grammar for JH-Lisp2.


The following is a description for “JH-Lisp2”, which is a modified version of the

language previo

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:40, lizzlegnz999
Respecting individual differencespre-test active2time remaining48: 47nina is exploring her gender identity and sexual orientationwhich best describes how the role of the media might influence nina during this time in her life? the media would her decide because television shows are always unbiased about gender issues and do notstereotypethe media could make things difficult for her because television sometimes portrays rigid ideas about gender roles. all forms of media will her decide because the media always portrays rigid ideas about gender roles. all forms of media will make things easy for her because the media always portrays open and fair ideas about gender roles.
Answers: 1
image
Computers and Technology, 22.06.2019 20:10, ianmartin6080
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
image
Computers and Technology, 22.06.2019 22:40, nsuleban9524
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
image
Computers and Technology, 25.06.2019 04:30, BIKRAMlawati5544
The word window is an example of a /an
Answers: 1
You know the right answer?
The following is a description for “JH-Lisp2”, which is a modified version of the language previous...

Questions in other subjects:

Konu
Mathematics, 05.07.2019 06:30
Konu
Chemistry, 05.07.2019 06:30