subject

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 }

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 16:30, magalya01
Which program can damage your computer?
Answers: 1
image
Computers and Technology, 25.06.2019 01:30, parislover2000
What controls can be found on the file tab of microsoft word
Answers: 1
image
Computers and Technology, 25.06.2019 05:30, jackiemiranda2010
Why are weather forecasts more reliable now compared of hundred years ago
Answers: 1
image
Computers and Technology, 25.06.2019 08:00, lilkit
In designing a management information system (mis), after defining the system's objectives, the next step is to information in a useful formatintegrate the hardware and software componentscollect and analyze datause information for decision making
Answers: 2
You know the right answer?
You are designing the syntax for a new language. The language is object oriented and the following e...

Questions in other subjects:

Konu
Advanced Placement (AP), 29.10.2020 05:40
Konu
Mathematics, 29.10.2020 05:40