Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
IGCSE CS PseudoCode Interpreter (Translator) Note. This program is currently undergoing the final tweaks. This Program transpiles (compiles source to source) the Pseudocode syntax studied in the IGCSE Computer Science 0478 Syllabus as no other application is available to do this. For any suggestions or bug reports, please send me a message on Gi…
License
Sherlemious/IGCSE-CS-PC-Transpiler
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This program translates the Pseudocode syntax studied in the IGCSE Computer Science 0478/0984 Syllabus.
This program is usage-ready with just a couple additional features under development. For any suggestions or bug reports, please submit an issue on GitHub.
If you liked it, please don't forget to star this repository. Thanks!
For starters, it is required to leave a space character between each variable, function or operator.For example, when assigning a value to a variable, this is the correct way to do it.
variable = 16 * 14 + variable2
While this, on the other hand, will not work.
variable=16*14+variable2
Numbers = [ 3, 4 ]Numbers[Count] = 123INPUT Numbers[3]
This is a simple statement use as in the following examples
PRINT "HELLO WORLD !"
The OUTPUT keyword also works
OUTPUT "HELLO WORLD !"
To print the string between two quotation marks " ".
Note that you should *never put quotations within pre-existing quotations and/or use a backslash character "\".
It is also possible to print/output the contents of a variable.
PRINT Variable
The OUTPUT keyword also works
OUTPUT Variable
To print multiple strings, or variable or both, separate them using commas.sum = 99
PRINT "The sum is equal to:" , sum
Output: The sum is equal to: 99
Note that spaces are automatically added between printed entites
This is a simple statement that can be used as in the following example.
INPUT Variable
The keyword, "USERINPUT", can also be used.
Variable = USERINPUT
A conditional statement that carries out a number of statements between the IF statement and the ENDIF statement. The ELSE statement will also be functional.
IF I = T THENPRINT "HELLO WORLD !"I = I + 1ELSE"Print Hello"ENDIF
(The 'THEN' keyword is optional)
This is to repeat a number of statements, which are inserted between the FOR "LCV" = "Start" TO "End" and the NEXT "LCV", for a set number of times.
FOR I = 1 TO 5PRINT "HELLO WORLD !"NEXT I
A conditional loop that is repeated as long as a condition is true. Any statements should be inserted between the WHILE "Condition" and the ENDWHILE STATEMENT.
WHILE I < 5 DOPRINT "HELLO WORLD !"I = I + 1ENDWHILE
(The 'DO' keyword is optional)
A conditional loop that is repeated until a certain condition is met. Any statements should be inserted between the REPEAT and the UNTIL statement.
REPEATPRINT "HELLO WORLD !"I = I + 1UNTIL I = 5
Comments should be preceded by two slashes and a space character as follows.
// This is a comment
Please readCONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
About
IGCSE CS PseudoCode Interpreter (Translator) Note. This program is currently undergoing the final tweaks. This Program transpiles (compiles source to source) the Pseudocode syntax studied in the IGCSE Computer Science 0478 Syllabus as no other application is available to do this. For any suggestions or bug reports, please send me a message on Gi…
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.