diff --git a/CMakeLists.txt b/CMakeLists.txt index a9901ba..2c0e593 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/README.md b/README.md index ed1eaec..1361f11 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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` diff --git a/Syntax.md b/Syntax.md index ebcc69b..6b4ecad 100644 --- a/Syntax.md +++ b/Syntax.md @@ -42,7 +42,7 @@ myArray[index] ``` Multi-dimensional array: ``` -myArray[index1, index2, ...] +myArray[index1, index2, ..., indexn] ``` ## Variable assignment @@ -54,7 +54,7 @@ Assigning to an undefined variable will define and initialise it to the value as ### Assigning to array element ``` myArray[index] <- -myArray[index1, index2, ...] <- +my3dArray[index1, index2, index3] <- ``` ## Constants @@ -224,7 +224,9 @@ ENDPROCEDURE No parameters: ``` CALL +``` OR +``` CALL () ``` @@ -426,7 +428,7 @@ PUTRECORD , CLOSEFILE ``` -## 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