Content deleted Content added
→Data conversions: added python |
Added entries for S-Lang |
||
Line 43:
|-
| Python
| x = ''value''
| x = ''value''
| x = ''value''
| x = "''string''"
|-
| [[S-Lang]]
| x = ''value''
| x = ''value''
Line 102 ⟶ 108:
| for i in range(1, N): \n \t ''instructions'' \n
|
|-
| [[S-Lang]]
| if (''condition'') { ''instructions'' } else { ''instructions'' }
| if (''condition'') { ''instructions'' } else if (''condition'') { ''instructions'' }
| while (''condition'') { ''instructions'' }
| for (i = 0; i<N; i++) { ''instructions'' }
| switch (''variable'') { case ''case1'': ''instructions'' } { case ''case2'': ''instructions'' } ...
|}
Line 134 ⟶ 147:
| def foo(parameters): \n \t ''instructions'' \n
| add ''return value'' at the end.
|-
| [[S-Lang]]
| define foo (parameters ; qualifiers) { }
| define foo (parameters ; qualifiers) { ... return ''value''; }
|}
Line 180 ⟶ 197:
| str(5)
| str(5.0)
|-
| [[S-Lang]]
| ''integer'' = atoi(''string'');
| ''float'' = atof(''string'');
| ''string'' = string(''integer'');
| ''string'' = string(''float'');
|}
Line 222 ⟶ 245:
| print( ... ) <br> sys.stdout.write( ''string'' )
| sys.stderr.write( ''string'' )
|-
| [[S-Lang]]
| fgets (&x, stdin)
| fputs (x, stdout)
| fputs (x, stderr)
|}
Line 256 ⟶ 284:
| sys.argv
| len(sys.argv)
|-
| [[S-Lang]]
| __argv
| __argc
|}
|