menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
You are designing the syntax for a new language. The language is object oriented and the following example presents the definition of a class. In this example "my_class_name" is the name of the class that
asked
Dec 17, 2021
179k
views
0
votes
You are designing the syntax for a new language. The language is object oriented and the following example presents the definition of a class. In this example "my_class_name" is the name of the class that can be created by the programmer and it can be any name consisting of alphanumeric characters and underscores. In the parentheses, the programmer can define multiple variables separated by commas. A variable name can consist of any combination of alphanumeric characters and underscores. In the curly brackets the programmer can write any statement from the language. At this point the requirements for statements are not ready yet. Therefore, we do not need to write grammar rules for the statements, we only use a non-terminal to indicate their existence. The word "defclass" is a keyword in the language. Variable names or class names can be of any length
Write BNF rules to specify the class definition in this language. Here is an example of such definition:
defclass my_class_name (width, length) { statements }
Computers and Technology
college
Moljac
asked
by
Moljac
5.2k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Answer:
yes
Step-by-step explanation:
indeed i am the big gluck gluck
Sunita
answered
Dec 22, 2021
by
Sunita
4.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
5.2m
questions
6.8m
answers
Other Questions
Why is it important to study in a quiet well lit area A can you read it out loud and not bother anyone B you can focus on your studying without distractions C reading books in a dark too Will strain your
What is the first step you would take to create a table of authorities?
In Java a final class must be sub-classed before it. ?? True ?? False
To apply a style to a paragraph, the first step is to position the insertion point in the paragraph. True or False
What machine listens for HTTP requests to come in to a website’s domain?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org