Programming
Language Project
Question
Set #2
Due:
Answers
MUST be keyed in before printing
Name ___________________ Programming Language ___________
Note: For
each of these question sets, you should look first in the reports you were
given. You should then check the
information on the Web or in a book. If
the information is not in the report, you should say so and then find it on the
Web or in a book.
1.
How is the symtax of your language described? (i.e. using BNF, with syntax diagrams, with examples, in
words) feel free to provide links to where you
found examples and an example. If you found it in a book, give the title, author and page
numbers; If you found it on the web,
give a URL. Refer
back to the mini-language Core handout to see examples of BNF description of
Mini-Language Core and syntax diagrams for Mini-Language Core.
With regard to variable names (not
values)
2.
What
characters are allowed (i.e. letters, underscores,
numbers, etc.)
With
regard to variable names (not values)
3.
What is the maximum length allowed and how many characters are
significant? (not a bad idea to indicate compiler)
4.
What is
the assignment operator in your language?
5.
Does
your language have reserved words and/or key words ? If your language
does something strange, include examples.
6.
Show a
typical assignment statement
7.
What
types of selection statements are available in your language? (compared to any of the languages we have
already looked at which have had various flavors of ifs and case statements )
FORTRAN had the arithmetic IF and the computed
GOTO. Your language may have something
different.
8.
What
types of iterative statements are available in your language? (compared to any of
the languages we have already looked at which have had various flavors of loops
such as endless loops, counted loops, while loops, repeat loops).
9.
Show a
typical input statement in your language. (i.e. FORTRAN uses:
read(5,20) X; Pascal uses: readln
(X);
10. Show a typical output statement in your
language.