Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, yentel110306
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, robert7248
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
image
Computers and Technology, 23.06.2019 22:20, Izzyfizzy
Read β€œsuburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
image
Computers and Technology, 24.06.2019 11:00, iloveballet1857
Each row in a database is a set of unique information called a(n) ? a.) table. b.) record. c.) object. d.) field.
Answers: 2
Do you know the correct answer?
The following is a description for β€œJH-Lisp2”, which is a modified version of the language previous...

Questions in other subjects: