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)
3
3
set (CMAKE_CXX_STANDARD 20 )
4
4
set (CMAKE_CXX_STANDARD_REQUIRED True )
5
5
6
- project (PseudoEngine2 VERSION 1.0.0 )
6
+ project (PseudoEngine2 VERSION 1.0.1 )
7
7
8
8
configure_file (PsConfig.h.in PsConfig.h )
9
9
add_executable (PseudoEngine2 )
Original file line number Diff line number Diff line change 1
1
# PseudoEngine 2
2
2
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 )
4
4
5
5
![ Demo] ( ./HelloWorld.gif )
6
6
@@ -37,14 +37,12 @@ OUTPUT "Hello World!"
37
37
Run it with ` RUNFILE hello.pseudo ` \
38
38
Example output:
39
39
```
40
- PseudoEngine2 v1.0.0 REPL
41
- Enter 'EXIT' to quit
42
40
> RUNFILE hello.pseudo
43
- Running file hello.pseudo
41
+ ==> Running file ' hello.pseudo'
44
42
Hello World!
45
43
46
- Program exited successfully
47
- >
44
+ ==> Program exited successfully
45
+ >
48
46
```
49
47
> Tip:
50
48
> 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]
42
42
```
43
43
Multi-dimensional array:
44
44
```
45
- myArray[index1, index2, ...]
45
+ myArray[index1, index2, ..., indexn ]
46
46
```
47
47
48
48
## Variable assignment
@@ -54,7 +54,7 @@ Assigning to an undefined variable will define and initialise it to the value as
54
54
### Assigning to array element
55
55
```
56
56
myArray[index] <- <value>
57
- myArray [index1, index2, ... ] <- <value>
57
+ my3dArray [index1, index2, index3 ] <- <value>
58
58
```
59
59
60
60
## Constants
@@ -224,7 +224,9 @@ ENDPROCEDURE
224
224
No parameters:
225
225
```
226
226
CALL <procedureName>
227
+ ```
227
228
OR
229
+ ```
228
230
CALL <procedureName>()
229
231
```
230
232
@@ -426,7 +428,7 @@ PUTRECORD <filename>, <variable>
426
428
CLOSEFILE <filename>
427
429
```
428
430
429
- ## Other features( outside cambridge format)
431
+ ## Features outside cambridge syntax
430
432
- ` BREAK ` - Break out of loops early
431
433
- ` CONTINUE ` - Skip to next iteration of loop
432
434
- ` ELSE IF ` - Alternative to reduce nesting
You can’t perform that action at this time.
0 commit comments