Slide 31
Slide 31 text
R3ally concr3t3
* CST contains all syntax-specific tokens
and delimiters, e.g. parentheses and
quotes
{"type": "Program",
"body": [{
"type": "VariableDeclaration",
"kind": "var",
"declarations": [{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "AST"
},
"init": {
"type": "Literal",
"value": "is a tree"
}
}]
]}
}
var AST = “is a tree”;
Keyword
Identifier
Equals
String Literal
Semicolon