Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
SingularityT3 committed Mar 30, 2024
1 parent cbabaef commit f5970f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

project(PseudoEngine2 VERSION 1.0.0)
project(PseudoEngine2 VERSION 1.0.1)

configure_file(PsConfig.h.in PsConfig.h)
add_executable(PseudoEngine2)
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PseudoEngine 2

A pseudocode interpreter designed to be compatible with the Cambridge IGCSE and A level pseudocode [syntax](./Syntax.md)
A pseudocode interpreter designed to be compatible with the Cambridge IGCSE and A level [pseudocode syntax](./Syntax.md)

![Demo](./HelloWorld.gif)

Expand Down Expand Up @@ -37,14 +37,12 @@ OUTPUT "Hello World!"
Run it with `RUNFILE hello.pseudo` \
Example output:
```
PseudoEngine2 v1.0.0 REPL
Enter 'EXIT' to quit
> RUNFILE hello.pseudo
Running file hello.pseudo
==> Running file 'hello.pseudo'
Hello World!
Program exited successfully
>
==> Program exited successfully
>
```
> Tip:
> 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`
Expand Down
8 changes: 5 additions & 3 deletions Syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ myArray[index]
```
Multi-dimensional array:
```
myArray[index1, index2, ...]
myArray[index1, index2, ..., indexn]
```

## Variable assignment
Expand All @@ -54,7 +54,7 @@ Assigning to an undefined variable will define and initialise it to the value as
### Assigning to array element
```
myArray[index] <- <value>
myArray[index1, index2, ...] <- <value>
my3dArray[index1, index2, index3] <- <value>
```

## Constants
Expand Down Expand Up @@ -224,7 +224,9 @@ ENDPROCEDURE
No parameters:
```
CALL <procedureName>
```
OR
```
CALL <procedureName>()
```

Expand Down Expand Up @@ -426,7 +428,7 @@ PUTRECORD <filename>, <variable>
CLOSEFILE <filename>
```

## Other features(outside cambridge format)
## Features outside cambridge syntax
- `BREAK` - Break out of loops early
- `CONTINUE` - Skip to next iteration of loop
- `ELSE IF` - Alternative to reduce nesting
Expand Down

0 comments on commit f5970f7

Please sign in to comment.