Closed fub-frank closed 11 years ago
The same problem occurs with print "\n"
in print.prog
We discussed that issue already in the plenum two weeks ago. As far as i understood Yves, it is valid to change the code to that, that it stores the strings in a variable and print the variable. I don't know who exactly is in charge of this modification, but i think we all agree if you're changing it.
We discussed explicitly who should change it but it was on my list. I had no time yet for this fix. I hope I am able to changes this tonight, but if someone volunteer...
On Tue, Jun 4, 2013 at 1:13 PM, Tkrauss notifications@github.com wrote:
We discussed that issue already in the plenum two weeks ago. As far as i understood Yves, it is valid to change the code to that, that it stores the strings in a variable and print the variable. I don't know who exactly is in charge of this modification, but i think we all agree if you're changing it.
— Reply to this email directly or view it on GitHubhttps://github.com/swp-uebersetzerbau-ss13/common/issues/33#issuecomment-18902649 .
m2 example cond.prog contains the line
This is an impossible statement according to the source language grammar:
Therefore no literals can be printed but only identifiers (variables). It is also impossible to represent the above code in the AST as the AST restricts the child node of
print
toidentifierNode
.