File: basic_JustePrix.tr

package info (click to toggle)
turing 0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,340 kB
  • sloc: python: 106,582; xml: 101; makefile: 53; sh: 29
file content (1 line) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (5)
1
BlockStmt([AssignStmt(IdentifierNode('Prix'), CallNode(IdentifierNode('randint'), [NumberNode(0), NumberNode(1000)])), AssignStmt(IdentifierNode('X'), UnaryOpNode(NumberNode(1), '-')), AssignStmt(IdentifierNode('Essais'), NumberNode(0)), WhileStmt(BinOpNode(IdentifierNode('X'), IdentifierNode('Prix'), '!='), [InputStmt(IdentifierNode('X'), None, False), IfStmt(BinOpNode(IdentifierNode('X'), IdentifierNode('Prix'), '<'), [DisplayStmt(StringNode(' '), True), DisplayStmt(StringNode("C'est trop bas !!"), True), DisplayStmt(StringNode(' '), True)]), ElseStmt([DisplayStmt(StringNode(' '), True), DisplayStmt(StringNode("C'est trop haut !"), True), DisplayStmt(StringNode(' '), True)]), AssignStmt(IdentifierNode('Essais'), BinOpNode(IdentifierNode('Essais'), NumberNode(1), '+'))]), DisplayStmt(BinOpNode(BinOpNode(StringNode("C'est gagné WAY WAY WAY, en "), IdentifierNode('Essais'), '+'), StringNode(' essais !'), '+'), True)])