I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)

Talk:Compiler/Sample programs

From Rosetta Code

99 Bottles sample[edit]

In the 99 bottles of beer sample, the parser output contains a Greater node, I suspect that should be a Greaterequal node to match the >= in the source?
Also, for strict compatibility with the RC 99 Bottles of Beer task :), the assignment:

bottles = bottles - 1;

should appear before the final:

print(bottles, " bottles of beer on the wall\n\n");

which would also mean the >= in the source should be > afterall... --Tigerofdarkness (talk) 09:12, 4 November 2016 (UTC)

Great catch![edit]

This pointed out a bug in the C version. I've updated the sample program, and will be updating the C Syntax Analyzer. And I anxiously await your Algol W solutions to the other compiler related tasks! --Ed Davis (talk) 10:26, 4 November 2016 (UTC)