Looking for COMP3000 Programming Languages test answers and solutions? Browse our comprehensive collection of verified answers for COMP3000 Programming Languages at ilearn.mq.edu.au.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
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