File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16)
33set (CMAKE_CXX_STANDARD 20)
44set (CMAKE_CXX_STANDARD_REQUIRED True )
55
6- project (PseudoEngine2 VERSION 1.0.0 )
6+ project (PseudoEngine2 VERSION 1.0.1 )
77
88configure_file (PsConfig.h.in PsConfig.h)
99add_executable (PseudoEngine2)
Original file line number Diff line number Diff line change 11# PseudoEngine 2
22
3- A pseudocode interpreter designed to be compatible with the Cambridge IGCSE and A level pseudocode [ syntax] ( ./Syntax.md )
3+ A pseudocode interpreter designed to be compatible with the Cambridge IGCSE and A level [ pseudocode syntax] ( ./Syntax.md )
44
55![ Demo] ( ./HelloWorld.gif )
66
@@ -37,14 +37,12 @@ OUTPUT "Hello World!"
3737Run it with ` RUNFILE hello.pseudo ` \
3838Example output:
3939```
40- PseudoEngine2 v1.0.0 REPL
41- Enter 'EXIT' to quit
4240> RUNFILE hello.pseudo
43- Running file hello.pseudo
41+ ==> Running file ' hello.pseudo'
4442Hello World!
4543
46- Program exited successfully
47- >
44+ ==> Program exited successfully
45+ >
4846```
4947> Tip:
5048> The program must be stored in the _ same folder_ as the executable ** or** the full path of the program has to be mentioned when using ` RUNFILE `
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ myArray[index]
4242```
4343Multi-dimensional array:
4444```
45- myArray[index1, index2, ...]
45+ myArray[index1, index2, ..., indexn ]
4646```
4747
4848## Variable assignment
@@ -54,7 +54,7 @@ Assigning to an undefined variable will define and initialise it to the value as
5454### Assigning to array element
5555```
5656myArray[index] <- <value>
57- myArray [index1, index2, ... ] <- <value>
57+ my3dArray [index1, index2, index3 ] <- <value>
5858```
5959
6060## Constants
@@ -224,7 +224,9 @@ ENDPROCEDURE
224224No parameters:
225225```
226226CALL <procedureName>
227+ ```
227228OR
229+ ```
228230CALL <procedureName>()
229231```
230232
@@ -426,7 +428,7 @@ PUTRECORD <filename>, <variable>
426428CLOSEFILE <filename>
427429```
428430
429- ## Other features( outside cambridge format)
431+ ## Features outside cambridge syntax
430432- ` BREAK ` - Break out of loops early
431433- ` CONTINUE ` - Skip to next iteration of loop
432434- ` ELSE IF ` - Alternative to reduce nesting
You can’t perform that action at this time.
0 commit comments