Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

TINY COMPILATION: sample.

tny
1: read x;
2: write 1+3*x-10

Syntax tree:
Read: x
Write
Op: -
Op: +
Const: 1
Op: *
Const: 3
Id: x
Const: 10

You might also like