LangProc / langproc-2018-lab

5 stars 4 forks source link

[3-Code generation] Output format #11

Open liqinyang opened 5 years ago

liqinyang commented 5 years ago

Should there be anything to separate two outputs? a space, \t, \n or nothing? For example,

Seq [ 
  Output [ 222 ]
  Output [ 333 ]
]

What should the output look like? 222333 , 222 333 or 222\n333 ?

ymherklotz commented 5 years ago

There should be a \n after the output, which is shown in the example at the very top of the readme.

Output [ x ]

translates to the following in C.

printf("%d\n",x);