Шукаєте відповіді та рішення тестів для COMP3000 Programming Languages ? Перегляньте нашу велику колекцію перевірених відповідей для COMP3000 Programming Languages в ilearn.mq.edu.au.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Terminals are represented with a quoted string in the metasyntax. Which of the concepts we've seen so far represent terminals in our interpreter?
Given the following grammar, which is a string that could be generated?
a -> b | c ;
b -> "matt" d ;
c -> "damian" e ;
d -> "makes me sad" | "broke my skateboard" | "ate my lunch" ;
e -> "is tops" | "is my favourite" ;
Which of the following is a good reason for using the visitor pattern for traversing AST nodes?
When generating the AST classes for our Lox interpreters, what is the purpose of writing a "tool" (e.g., GenerateAst)?
In the following grammar, which symbols are "terminals"
e -> t | f ;
t -> "foo" | "bar" ;
f -> "foo()" | "bar()" ;
Which lox expression corresponds to the following tree? .
Which of these characteristics would make a language implementation certainly a compiler:
Which of the following are optimisations a compiler/interpreter might do? Note, there could be more than one correct answer.
Which of these characteristics would make a language implementation certainly a compiler