Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 2 pts ) JMH - Lisp is a simple language designed after the LISP programming language, that can be used for evaluating arithmetic

(12 pts) JMH-Lisp is a simple language designed after the LISP programming language,
that can be used for evaluating arithmetic expressions. It is described by the following
components:
(a) The alphabet of JMH-Lisp consists of the open '(' and close ')' parentheses,
the digits 0-9, the space character ', and the symbols +-**?
(b) An operator is a substring in JMH-Lisp containing one of the symbols +-**?.
(c) A number is a substring in JMH-Lisp 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 parenthesis: '('
ii. An operator
iii. A space: '',
iv. An expression
v. A space: ',
vi. An expression
vii. A close parenthesis: ')'
(f) A string in the JMH-Lisp language is a single list expression.
Examples of JMH-Lisp strings may include:
(*23)
(+(**53)(?84))
(-25(+42))
Is .JMH-Lisp a regular language? Why or why not? If you think it is, provide a regular
expression or finite automaton which recognizes the language. If you think it is not,
provide an explanation as to why no regular expression or finite automaton should be
able to recognize it.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Second East European Symposium Adbis 98 Poznan Poland September 1998 Proceedings Lncs 1475

Authors: Witold Litwin ,Tadeusz Morzy ,Gottfried Vossen

1st Edition

3540649247, 978-3540649243

More Books

Students also viewed these Databases questions