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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 23.06.2019 09:10
Effective character encoding requires standardized code. compatible browsers. common languages. identical operating systems.
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
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
question
Business, 14.07.2021 20:30
question
Mathematics, 14.07.2021 20:30
question
Mathematics, 14.07.2021 20:30
question
Mathematics, 14.07.2021 20:30
Questions on the website: 13722361