The main code block of an algorithm must appear inside braces. See the PlusCal grammar in the manual (specifically, the definition of "CompoundStatement") and/or tutorials and examples available on the Web, such as learntla.com. (* --algorithm Increase { variable x = 0; { x := x + 1; print x } } *) Also, for using "print", your module must extend the TLC module. Stephan
--
You received this message because you are subscribed to the Google Groups "tlaplus" group. To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx. To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/87D6C6E7-F8A1-41C6-A8DB-E5F89704B9D8%40gmail.com. |