Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

SIMPL 1.1: step by step, line by line

A topic by Simpl_pseudocode created 53 days ago Views: 1,624 Replies: 10
Viewing posts 1 to 9
(1 edit) (+11)


SIMPL 1.1 is out! It's the first big update since launch, and it's about two things: seeing what your program does while it runs, and getting help while you write it. Programs written for SIMPL 1.0 run unchanged.

https://simpl-pseudocode.itch.io/simpl

What's new

Trace tables, filled in for you

Tick View > Trace Table and a new Trace tab fills in your program's trace table while it runs, just like the ones you draw by hand in a dry run: one column per variable, OUTPUT last, a new row at each round of a loop. Hover over a row to see which lines wrote it, double-click a cell to jump to its line, and export the table to a spreadsheet, a CSV file or a printed page next to the program. It's made for short programs, like the exercises of the manual.

Debugger: Step Over, Step Into, Step Out

Step (F10) now steps over routine calls, Step Into (F11) follows a call inside, and Step Out (Shift+F11) comes back to the caller. At every pause, the variables that just changed are highlighted, locals and globals are shown apart, and you can click any call in the Call Stack to look at its own variables. Recursion has never been easier to follow.

Mistakes caught as you type

A second after you stop typing, SIMPL underlines the first syntax error in red and tells you what's wrong, often with a "did you mean...?" for a misspelt keyword or name. Keywords are written in capitals and <- becomes ← as you type, closing words like ENDIF line up with their block by themselves, and the block the cursor is in is shaded and named above the editor. Every one of these can be turned off in the new Options menu, to practise as in the exam.

From an error to its explanation

Error messages are clearer and all have the same short shape: what went wrong, where, the line quoted with ^^^ under the words in question, and a hint. At the end of each one, More › opens the User Manual at the explanation of that kind of error.

A better User Manual

The manual now has a window of its own that you can keep on top of the editor. All 205 exercises were reviewed (96 rewritten or replaced, with their solutions), the Bigger picture sections were rewritten, and the appendix for Cambridge students follows the 2027-2029 syllabus.

Tetromino Tumble, remade

The sample game has a brand-new look. If you're upgrading from 1.0, see below how to get it.

And also

File > Open Recent and Save As, Go to Line, Toggle Line Comment, a right-click menu in the editor, reorganized menus, more checks in Cambridge Strict Mode, colors reviewed for legibility, and a long list of fixes. Everything is in the full list at the end of this post.

Upgrading from 1.0

  1. Download SIMPL 1.1 and put the new simpl.exe (Windows) or simpl.appimage (Linux) in the same folder as the old one, replacing it. Your settings, programs and libraries live next to it, and they are kept.
  2. To get the new Tetromino Tumble: SIMPL never overwrites a file that is already in your programs folder, because it might be one you changed. So rename the old one first, for example programs/tetromino_tumble.simpl to tetromino_tumble_1.0.simpl, then start SIMPL 1.1: it copies the new tetromino_tumble.simpl into the folder at startup. Your renamed copy stays as it was.

If you put SIMPL 1.1 in a new, empty folder instead, it starts with fresh copies of everything, Tetromino Tumble included: just copy your own programs over from the old programs folder.

Thanks for using SIMPL! If you find a bug or have an idea for the next version, leave a comment below.

Full list of changes

Writing code

  • Syntax check as you type. About a second after you stop typing, the first syntax error is underlined in red, its line number turns red, and the status bar says Syntax error, line N: hover for the message, click to go to the line. What you are still writing is not reported yet. Turn it off in Options > Check Syntax While Typing (to practise as in the exam).
  • "Did you mean...?" A misspelt keyword (OUTPT X, ENDIFF) or a name close to an existing one gets a suggestion: did you mean OUTPUT?, Did you mean Total?
  • Keywords in capitals and ← as you type. if becomes IF and <- becomes ← as soon as the word is finished, never inside strings or comments. Options > Uppercase Keywords and ← While Typing turns it off.
  • Closing words line up by themselves. ENDIF, NEXT, ELSE, UNTIL... move back to the indentation of their block as soon as you type them.
  • The block you are in. The lines of the block around the cursor are shaded, and the title above the editor lists the blocks you are inside (average.simpl › FOR I (line 4) › IF Mark >= 50 (line 6)). Options > Show Current Block turns it off.
  • Format Code (Ctrl+Shift+F) now also writes keywords in capitals and ←, and puts one statement per line.
  • Toggle Line Comment (Ctrl+/) comments or uncomments the selected lines; Go to Line (Ctrl+G) jumps to a line by its number.
  • Right-click menu in the editor, the console and the search boxes: Undo, Redo, Cut, Copy, Paste, Select All.
  • Typing. Quotes are paired only in code (not in comments, strings or words like Newton's); Enter at the start or in the middle of a line no longer leaves stray spaces.
  • Breakpoints follow their lines when you add or remove lines above them, and go away with a deleted line.

Running and debugging

  • Step Over, Step Into, Step Out. Step (F10) is now Step Over: a routine call runs in one go. Step Into (F11) goes inside the routine; Step Out (Shift+F11) finishes it and pauses back where it was called. F5 means Continue while paused.
  • What changed is highlighted. At each pause, the variables whose value changed are highlighted in the Variables panel, and the status bar lists them.
  • Local and global variables apart. Paused inside a PROCEDURE or FUNCTION, the Variables panel shows Local and Global groups; a global hidden by a local of the same name is greyed out.
  • Every call can be inspected. The Call Stack lists every call in progress with the line it is waiting at; click one to see its variables and its line. The tab's title counts the calls.
  • Clearer cues. An arrow ▶ marks the line about to run; the line number under the mouse shows where a click sets a breakpoint (also F9 on the cursor's line, and Run > Remove All Breakpoints).
  • Stop has a key of its own: Shift+F5.
  • The editor is read-only while a program runs (you can still select, copy and set breakpoints), so what you see is always what is running.
  • The debugger no longer stops inside IMPORTed libraries: their routines run in one go.

Trace Table (new)

  • View > Trace Table adds a Trace tab that fills in the program's trace table while it runs, like the ones drawn by hand in a dry run: one column per variable (and per array element or field that gets a value), OUTPUT last, a new row at each round of a loop.
  • Hover over a row to see which lines wrote it; double-click a cell to go to its line; while stepping, the row being written is highlighted.
  • Right-click a heading to hide, show or move columns. Export copies the table (it pastes as a table into a spreadsheet), saves it as CSV, or prints it with the program.
  • It suits short programs, such as the manual's exercises: a program runs more slowly while the table records. It records up to 1,000 rows and 60 columns; programs with graphics (CANVAS) and IMPORTed libraries are not traced. A short window explains this the first time.

Error messages

  • Clearer reports. The heading says what kind of error and where (Runtime error on line 7: the program stopped); the line is quoted with ^^^ under the words in question; the hint is set apart. Every report has the same short shape, in the IDE and from a terminal.
  • From the error to its explanation. More › at the end of each report opens the User Manual at that kind of error. Appendix C now explains each of the 13 kinds of error.
  • Names as you wrote them. Messages say Cannot assign to Age, not AGE.
  • An unterminated string is reported at its opening quote, not at the end of the program.

Cambridge Strict Mode

  • Now also reports several statements on one line, & used with a value that isn't text ("Age: " & 13), and SELF inside a class.
  • The menu entry is now Options > Cambridge Strict Mode.

Files, menus and toolbar

  • File > Open Recent lists the last ten programs; File > Save As (Ctrl+Shift+S) saves under another name.
  • File > Open clears the console and the variables, as File > New does.
  • Menus reorganized, as in VS Code: commands in the menu of what they act on, settings together in a new Options menu; Trace Table is in View; Edit has Cut, Copy, Paste and Find.
  • One name per command: the toolbar uses the menus' names (Run, Stop, Step Over...). Clear Variables is in the Run menu, Find in the Edit menu (Ctrl+F).
  • Find bar more compact, always at the left of its panel.
  • New keys: Shift+F5 Stop, F9 breakpoint, F11 / Shift+F11 Step Into / Out, Ctrl+Shift+S Save As, Ctrl+G Go to Line, Ctrl+/ comment, Ctrl+Q Exit, Ctrl+Shift+Z Redo. Help > Keyboard Shortcuts lists them all.

User Manual

  • A window of its own: it can go behind the IDE, be minimized, or stay on top (Keep on Top); F1 brings it back where you left it. In a narrow window, the contents become a drawer.
  • Title page entry at the top of the contents, to get back to the beginning.
  • Tables in the text's font, fitted to the page; the manual opens faster.
  • Content. The bigger picture sections rewritten (other languages, history, the real world); all 205 exercises reviewed, 96 rewritten or replaced, with their solutions; new A SIMPL extra boxes; Appendix H, for Cambridge students, rewritten for the 2027-2029 syllabus; every message quoted as SIMPL writes it now.

Look and feel

  • Colors reviewed for legibility in both themes: strings green, numbers purple, every text at least 4.5:1 contrast.
  • Empty panels say what will appear in them; scroll bars appear only when needed; the open Inspector tab stands out; the number of the cursor's line is shown in full-strength text.
  • About lists the features in four groups.

Programs

  • Tetromino Tumble has a new look (panels, a sidebar with score, level, next piece and keys). Same gameplay and scores. See Upgrading from 1.0 to get it.

Fixed

  • The IDE did not start with Tk 9.
  • A line starting with the word EOF silently ended the program.
  • A selection was hidden under the line highlights.
  • Undo after opening a file emptied the editor; Redo after New brought the old program back.
  • Paste did not replace the selected text (Linux); Ctrl+Y pasted instead of redoing, Ctrl+W cut, Ctrl+O split the line (Linux).
  • F10 also opened the File menu.
  • Step paused twice on a line with NEW or a method call.
  • A routine of your program called by a library was reported as an error in the library.
  • Saving a new program while paused broke stepping.
  • Run Selection highlighted the wrong words in an error.
  • The mouse wheel over the line numbers did not scroll the editor.
  • Table headings and selected console text were hard to read.
  • A minimized User Manual stayed in the taskbar when F1 asked for it.
  • The manual's contents did not follow the last sections, and its bar showed only symbols at first.
  • The printed page colored numbers inside strings and comments.

SIMPL 1.2 is out! It completes pointers, makes several error messages say more clearly what to do, and opens a place to meet other SIMPL users. Programs written for SIMPL 1.1 run unchanged, with a few small exceptions listed below.

What's new

Pointers, complete

A pointer kept in a record field or an array element can now be followed directly, to read and to write, so a chain of records reads just as you would draw it:

OUTPUT First.NextNode^.Name
First.NextNode^.NextNode^.Name ← "Cleo"
Current ← ^First
WHILE Current <> NULL
    OUTPUT Current^.Name
    Current ← Current^.NextNode
ENDWHILE

NULL is the pointer that points nowhere: P ← NULL unlinks a pointer and IF P <> NULL THEN checks it. Two pointers are now equal when they point to the same variable, and every pointer starts as NULL. Chapter 14 of the User Manual shows it all.

Clearer error messages

A ^ in the wrong place now says where it can go, instead of talking about powers. < and > between values that have no order (pointers, records, arrays, sets, TRUE and FALSE) suggest what to compare instead. And a missing comma is now Expected ',', but found..., with the symbol in quotes.

Join the community

SIMPL is made by one independent developer, with no company or advertising behind it: it grows when the people who find it useful tell others about it. Two new entries in the Help menu make that easy: Visit the SIMPL Community opens the community board here on itch.io, the place for questions, ideas and bugs, and Rate SIMPL on AlternativeTo lets you leave a rating or a short review that helps others discover SIMPL. Once you've used SIMPL for a while, it may remind you of them when you close it, at most twice.

And also

Cambridge Strict Mode now reports ^ in every kind of declaration, SIMPLR answers GOTO with no line number with a proper ? SYNTAX ERROR, and the User Manual opens again with the newest Tk 9. Everything is in the full list at the end of this post.

Compatibility

  • NULL is now a reserved word, like TRUE and FALSE: a variable, field or routine named Null must be renamed.
  • Two pointers are compared by the address they hold: P = Q is TRUE when both point to the same variable, or are both null, where 1.1 often said FALSE. Comparing pointers to different types of data now stops the program with an error.
  • A null pointer is printed NULL (it was ^NULL), and some error messages are worded differently.

Upgrading from 1.1

  1. Download SIMPL 1.2 and put the new simpl.exe (Windows) or simpl.appimage (Linux) in the same folder as the old one, replacing it. Your settings, programs and libraries live next to it, and they are kept.
  2. To get the fixed SIMPLR: SIMPL never overwrites a file that is already in your programs folder, because it might be one you changed. So rename the old one first, for example programs/simplr.simpl to simplr_1.1.simpl, then start SIMPL 1.2: it copies the new simplr.simpl into the folder at startup. Your renamed copy stays as it was.

If you put SIMPL 1.2 in a new, empty folder instead, it starts with fresh copies of everything: just copy your own programs over from the old programs folder.

Thanks for using SIMPL! Questions, ideas or bugs are welcome on the community board, and if SIMPL is useful to you, a rating on AlternativeTo helps others find it.

Full list of changes

Pointers

  • ^ after a field or an array element. A pointer kept in a record field or an array element is followed directly, to read and to write: OUTPUT First.NextNode^.Name, First.NextNode^.NextNode^.Name, First.NextNode^.Name ← "Bea", Scores[1]^ ← 80. In 1.1 this was a syntax error, and the pointer had to be copied into a variable first.
  • NULL, the null pointer. P ← NULL makes a pointer point nowhere, and IF P <> NULL THEN checks it, so a loop can follow a chain of records to its end: WHILE Current <> NULL. Every pointer starts as NULL. The Cambridge guide has no word for it, so Cambridge Strict Mode reports it.
  • Comparing pointers. = and <> compare addresses: two pointers are equal when they point to the same variable, or are both null, however each was made. To compare the values they point to, follow them: P^ = Q^. Pointers to different types of data can't be compared.
  • Every pointer starts as a null pointer, also a field declared NextNode : ^TNode and the elements of ARRAY[1:2] OF ^INTEGER: following one says Cannot dereference a null pointer.
  • The User Manual's Chapter 14 shows all of this, with a chain of records followed through its pointers.

Error messages

  • Symbols in quotes. Expected ',', but found identifier 'S' (it was Expected ,,); keywords stay as they are (Expected THEN).
  • ^ in the wrong place. P^^ or F()^ now explain where ^ can go (after a pointer's name, a field or an element), instead of talking about powers; NULL^ and ^NULL have messages of their own. 2 ^ 3 still says to use ** for powers.
  • < and > between values with no order (pointers, records, objects, arrays, sets, TRUE and FALSE) now give a hint that fits: what can be compared instead.

Cambridge Strict Mode

  • ^ in a declaration is now reported wherever a type is written with ^ in place: a field of a TYPE or a CLASS, an array of pointers (ARRAY[1:2] OF ^INTEGER), a parameter, a local variable. The guide names a pointer type first: TYPE TIntPointer = ^INTEGER.
  • NULL is reported (see Pointers).

Community

  • Help > Visit the SIMPL Community opens the community board on itch.io: the place for questions, ideas and bugs, and to talk with me and with other SIMPL users.
  • Help > Rate SIMPL on AlternativeTo: a rating, a short review or a like there helps others discover SIMPL. Both links are also in About.
  • Once you have used SIMPL for a while, closing it may show a short invitation to do the same. It appears at most twice, never right after an error, and Don't ask again turns it off.

Programs

  • SIMPLR: GOTO or GOSUB with no line number now answers ? SYNTAX ERROR (it was ? UNDEFINED LINE 0 ERROR), and GOTO 1 / 0 answers ? DIVISION BY ZERO ERROR. See Upgrading from 1.1 to get it.

Fixed

  • With Tk 9 the User Manual did not open.
  • Assigning a pointer taken from a copied record or array stopped with an internal error.
  • Two pointers to the same variable were not equal.
  • A pointer field or element declared with ^ started empty instead of null.
Show post...

First.NextNode^.NextNode^.Name ← "Cleo"

???

SIMPL 1.2.1 is a consolidation release. There is nothing new in the language this time: instead, I put SIMPL and GU{I}DE through a stress test, and fixed everything it found. Along the way, programs got faster, the IDE got quicker, and a few parts of the interface got a careful polish.

Faster everywhere

Programs run from a third faster to twice as fast, depending on what they do: loops and arrays are about twice as fast, in GU{I}DE and from the command line. Programs that print a lot are much faster in the IDE: 5,000 lines of OUTPUT took almost 2 seconds, now they take a few hundredths, and the window stays smooth while a program runs. Typing in a long program no longer lags, and searching (Ctrl+F) in the editor, the console and the User Manual is instant.

Keyboard Shortcuts, redesigned

The shortcuts window is now organized by task, one action per row, in the words of the menus, with its keys drawn as keys. It always fits the screen, even on a small laptop.

Start typing to filter: by name (save, run) or by keys (ctrl s, f5).

Zoom that works with UI Size

UI Size sets the size of the whole interface, and zoom (Ctrl++, Ctrl+-, Ctrl+0) works on top of it, from 70% to 200%, as in a browser. It now takes in the Inspector too: Variables, Call Stack and the Trace Table grow and shrink with the code, keeping the column widths you set. Your previous text size carries over.

Files from other programs

A program or a data file saved by Notepad or Excel with a BOM (an invisible mark at the start of the file) could stop with an error on a line that looked perfectly fine. Files in the older Windows encoding, with letters such as à and é, couldn't be opened at all. Both now just work, and GU{I}DE saves such programs as UTF-8.

And also

The dividers between the panels light up under the mouse, so they're easier to find, and scroll bars have a cleaner look, with a rounded slider and no arrows. Dates such as 25/12/2026 are colored as one value, which also shows when something you meant as a division is read as a date. The console keeps the last 10,000 lines, so a program stuck printing in an endless loop can't fill the memory. Dialogs taller than the screen now scroll, with their buttons always in view. And several error messages now say more clearly what went wrong and what to do.

Before you upgrade

Programs written for 1.2 run unchanged, with a few exceptions: mistakes that SIMPL used to let through in silence now stop with an error that explains them.

  • Declaring a variable a second time with another type.
  • An array whose first bound is greater than the second, such as ARRAY[5:1].
  • LEFT, RIGHT or MID with a negative number of characters.
  • Raising a negative number to a fractional power, or a BOOLEAN to any power.
  • A REAL calculation going past the largest REAL, which used to go on with inf.

None of the programs in the User Manual, in lib or in programs does any of these.

How to upgrade

Put the new simpl.exe (Windows) or simpl.appimage (Linux) in the same folder as the old one, replacing it. Your settings, your programs and your libraries are kept. No file in lib or programs has changed in this release, so there is nothing else to do.

Full list of changes

Faster

  • Programs run from a third faster to twice as fast.
  • Programs that print a lot run much faster in GU{I}DE, and the window stays smooth while a program runs.
  • Typing in a long program no longer lags.
  • Searching in the editor, the console and the User Manual is instant, and searches once you stop typing.

The IDE

  • Zoom works on top of UI Size, from 70% to 200%, and takes in the Inspector.
  • Keyboard Shortcuts redesigned, with a search box.
  • The dividers between the panels light up under the mouse; scroll bars have no arrows, a slider with rounded ends, and react more gently.
  • Dates are colored as one value.
  • The console keeps the last 10,000 lines.
  • Files with a BOM, and files in the Windows-1252 encoding, can be opened, run, imported and read with READFILE.

Error messages

  • OUTPUT with nothing after it now says OUTPUT needs a value to show, on its own line.
  • ^A[2] and ^R.Field now explain that ^ takes the address of a whole variable.
  • A field of an object not yet created with NEW always says so.
  • A program that can't be opened gets a message in plain words.

Fixed

  • Searching the User Manual closed GU{I}DE.
  • Integers of more than 4,300 digits stopped with an internal error.
  • A negative CASE label (-1 :) after a statement was read as a subtraction.
  • The field of an object in an array (Pupils[i].Name) couldn't be read.
  • A number too large for a REAL stopped with an internal error, or became inf.
  • The console's input line disappeared with large text.
  • Dialogs taller than the screen were cut off.
  • About and Keyboard Shortcuts flickered as they opened, and the User Manual's scroll bar jumped for a couple of seconds after opening.
  • At a smaller UI Size, the User Manual opened much wider than its text.
  • The bottom of the editor could flicker without end with a long line.
  • On Linux, scroll bars flashed while a divider was dragged or the window resized, and so did a thin light frame at the bottom of the console. Scroll bars now have no arrows and a slider with rounded ends, as in VS Code and most modern apps.
  • On Linux, the User Manual's scroll bar appeared a moment after its text, moving it slightly to the left.
  • On Windows, the whole window shook while it was resized.
  • On Windows, the User Manual opened white for a moment, and dialogs opened away from the center of the window, too high when it was maximized.
  • On Windows, disabled menu commands (such as Stop when no program runs) looked blurred on the dark theme.
  • Brackets and other symbols were sometimes colored as keywords.

SIMPL is a free download for Windows and Linux. Questions, ideas and bug reports are welcome on the community board.

SIMPL 1.3 is out, and it's a release about learning. SIMPL now notices more of the mistakes a beginner makes, points to them the moment they happen, and explains each one in plain words, with a hint on how to fix it. It also brings new functions, and every example of the Cambridge 9618 Pseudocode Guide is now part of SIMPL's own tests.

Error messages that teach

All the messages SIMPL can give, about 250 of them, were rewritten in one style. Each says what SIMPL expected and what it found, in the words of pseudocode, and ends with a hint. A misspelled name gets a suggestion, and habits from other languages (==, !=, .5) get a friendly message of their own.

Mistakes caught early

A function called as if it were a procedure, a number passed to a BYREF parameter, a name defined twice, a date or an object used before it has a value, a REAL used as an array index: SIMPL now spots each of these where it happens and says how to put it right, so a small slip never grows into a puzzling result ten lines later. Many are found before the program even starts.

New functions

ASC and CHR convert between characters and their codes; DAY, MONTH and YEAR take a date apart; TIME() gives the seconds since the program started, the right way to keep time in a game. And Canvas.Save now writes a PNG.

And also

Routines can be called before their definition, so a program can open with its main part. A BYREF parameter is the caller's variable for the whole call, just as the manual describes it. = compares records and arrays element by element. Cambridge Strict Mode points out even more details for exam practice: accented names, guide keywords used as names, a file written with other capitals. The User Manual quotes every message exactly as SIMPL gives it, and Part III writes Canvas and Sound as programs do.

Before you upgrade

A few forms that SIMPL used to accept now get a message that says what to write instead: for example a backslash in a string is now an ordinary character, a string ends on its own line, and GETPIXEL is now called IsPainted. The full list is in the release notes below.

To upgrade, replace simpl.exe or simpl.appimage with the new one: your settings, programs and libraries are kept. Two files that come with SIMPL must be replaced, because SIMPL never overwrites them: rename programs/simplr.simpl and lib/shapes.simpl (for example to simplr_1.2.simpl), then start SIMPL 1.3, which copies the new ones in their place. It's worth doing the same for programs/tetromino_tumble.simpl and lib/structures.simpl.

Questions, ideas or bugs? Come and tell me on the SIMPL Community.


Full release notes

Compatibility. Most programs written for SIMPL 1.2.1 run unchanged in 1.3. Programs that rely on a form the guide doesn't allow, or on a detail where SIMPL used to be more lenient than the manual describes, now stop with a message that says what to write instead. None of the programs in the User Manual or in lib does any of these; for programs, see Upgrading from 1.2.1.

  • Strings. A backslash is an ordinary character: "C:\temp\new.txt" is exactly what it looks like, and "a\nb" is four characters, not two lines. A double quote inside a string is written twice, "He said ""hi""" (\" is now an error). A string must end on the line where it starts.
  • Functions and procedures. A FUNCTION called on a line of its own (Square(3), CALL Square(3), LENGTH(S)) now stops: use its result, X ← Square(3). WAIT is the exception, and is called as a procedure: CALL WAIT(0.1).
  • BYREF. The argument of a BYREF parameter must be a variable, an array element or a field: a number or an expression now stops. A BYREF parameter can't be the counter of a FOR loop.
  • Arrays. An array parameter declared with bounds (ARRAY[1:5] OF INTEGER) takes only an array with those bounds; ARRAY OF INTEGER without bounds still takes any size. An index must be an INTEGER: A[4 / 2] now stops (write A[4 DIV 2]), and so does a REAL address in SEEK.
  • Names. A name means one thing in a whole program: defining it twice, or for two different things (a variable and a procedure, a property and a method of the same class), now stops before the program runs. So does a library that defines a name the program already defines, and giving a value to the name of a routine, a class, a TYPE or an image.
  • Definitions. A PROCEDURE, FUNCTION, TYPE or CLASS can only be defined at the top level of a program (or, for routines, inside a CLASS), not inside a loop, an IF or another routine. A constructor is a PROCEDURE named NEW, not a FUNCTION. A parameter can't be DECLAREd again inside its routine.
  • Comparisons. An enumerated value is compared only with a value of its own TYPE (Spring = "Spring" now stops: write Spring), and IN only with a value of the set's type. A CASE label of another type than the value after CASE OF now stops. Records of two different TYPEs can't be assigned or compared, even with the same fields.
  • Missing values. A DATE with no value, or an object variable before NEW, now stops when its value is used (printed, joined, compared, converted), with D has no value yet or MyCat holds no object yet: create it with NEW.
  • Functions. LENGTH of a number and RAND of 0 or less now stop.
  • Graphics and sound. GETPIXEL is now called IsPainted, and works as before. The methods of Canvas and Sound that take whole numbers (coordinates, sizes, colors) no longer accept a REAL: DrawRectangle(20 / 4, ...) now stops (write 20 DIV 4). An unknown key name (KeyDown("Spcae")) now stops, suggesting the closest one. Passing too many arguments to a method now stops.
  • Numbers typed or read from a file are read as a program writes them: 1_000 or .5 now stop with Invalid input.
  • What is printed for a whole record, object, image or Canvas follows the program's own spelling: Cat(Name: "Kitty", Lives: 9), Canvas (320 x 240).
  • Error messages have new wordings, all in one style (see Error messages below).

Calling a routine before its definition, which used to stop with Undefined procedure, now works. A program of your own that uses one of the new function names (ASC, CHR, DAY, MONTH, YEAR, TIME) for its own routine or variable keeps working: your definition comes first.

Upgrading from 1.2.1

  1. Put the new simpl.exe (Windows) or simpl.appimage (Linux) in the same folder as the old one, replacing it. Your settings (simpl_settings), your programs (programs) and your libraries (lib) are next to it, and they are kept.
  2. Four files that come with SIMPL have changed, and SIMPL never overwrites a file that is already in your programs or lib folder (it might be one you changed). Rename the old ones, for example simplr.simpl to simplr_1.2.simpl, then start SIMPL 1.3: the new files are copied there at startup. Your renamed copies stay as they were.
    • programs/simplr.simpl must be replaced: the old copy stops with a syntax error in 1.3 (it uses \" in strings).
    • lib/shapes.simpl must be replaced: the old copy stops any program that IMPORTs it, because its class had a property and a method with the same name.
    • programs/tetromino_tumble.simpl and lib/structures.simpl still work, but the new copies follow the manual and the guide (Cambridge Strict Mode reports less in them) and keep Tetromino Tumble closer to real time on a slow computer.

If you put SIMPL 1.3 in a new, empty folder instead, it starts with fresh copies of everything; copy your own programs over from the old programs folder.

New functions

  • ASC(C) and CHR(N) convert between a character and its code: ASC('A') is 65, CHR(66) is 'B'.
  • DAY(D), MONTH(D) and YEAR(D) give the parts of a DATE as whole numbers.
  • TIME() gives the seconds since the program started, as a REAL: the way to measure time in a game or an animation (Now ← TIME(), Elapsed ← Now - Last). The time spent paused in the debugger doesn't count.
  • Canvas.Save writes a PNG when the name ends in .png, which every image viewer opens.

These are SIMPL extensions: Cambridge Strict Mode points them out.

The Cambridge guide, in every detail

  • Every example of the guide is now part of SIMPL's own tests, copied as the guide prints it, and gives the guide's result. Only one stops, as it should: the example of section 10.1 that calls a PRIVATE method from outside its class, which is what PRIVATE forbids.
  • CALL Beep without brackets, as the guide's own CASE example writes it, calls a procedure with no parameters.
  • Routines and classes can be used before their definition, as in Java or Visual Basic: a program can put its main part first and its routines after.
  • A BYREF parameter is the caller's variable for the whole call, as the manual explains it (and as Pascal's var or C++'s &): changing it changes the caller's variable at once, not only at the end of the call.
  • The counter of a FOR loop in a routine is always local to the routine, so a routine can never change the counter of the loop that called it.
  • = and <> compare records and arrays element by element: two records with the same fields are equal (they never were before).
  • A CASE range works for text and dates too: "A" TO "L" :.
  • The built-in functions are names, as in Python or Pascal: a variable, field or method can be called Left or Length.

Cambridge Strict Mode

Strict Mode now also reports: a name with accented letters; a keyword of the guide used as a name (Length, Step); the same file written with other capitals ("Scores.txt", "scores.txt"); LENGTH of an array; = and <> between whole arrays or records; a REAL written 5.; DECLARE for a property of a CLASS (the guide writes PRIVATE Name : STRING); CASE OF followed by an expression; RAND of a REAL; CALL without brackets; a double quote doubled inside a string.

Error messages

Every message SIMPL can give, about 250 of them, was reviewed and rewritten in one style:

  • each says what was expected and what was found, in SIMPL's own words, without Python terms such as bool or identifier;
  • names are written as in your program, and comparisons name the types: Cannot compare an INTEGER with a STRING;
  • a misspelled name, class or method suggests the closest one: Class Canvas has no method DrawRectangel / Did you mean DrawRectangle?;
  • the forms of other languages get a message of their own: ==, !=, .5;
  • every message has a hint, and errors found before the program runs always read Syntax error on line N: the program was not run;
  • a mistake is marked where it is: in a comparison under its operator, in an IMAGE on the wrong row.

The User Manual

  • Every message it quotes is the one SIMPL now gives, and every example of Part III runs as shown.
  • Chapters 26 and 27 are now Canvas and Sound, and Part III writes them as programs do: DECLARE Screen : Canvas, Screen.SetColor(255, 0, 0), without CALL before a method.
  • Chapter 26 explains TIME, and Chapters 27 and 30 use it to keep time.
  • The manual follows only the Cambridge 9618 Pseudocode Guide 2027-2029, and Appendix H no longer describes the exam papers.
  • Meet GU{I}DE is easier to read, with the menus as a list.
  • A bookmark on Chapter 26, Chapter 27 or a step of Chapter 24 now opens the manual at its start, because their titles changed.

The IDE

  • The Variables panel writes names as your program does, tells a CHAR ('K') from a STRING, shows an object's properties on its row, and leaves an empty value for a DATE or an object that has none.
  • Every built-in function is colored as a keyword where it is called, and written in capitals as you type it (length(s) becomes LENGTH(s)), while a variable called Length keeps the look of a name.

Fixed

  • A date the calendar doesn't have (31/02/2020) closed the run without a message.
  • An array bound that isn't a whole number gave an internal error.
  • A class inheriting from Canvas or Sound gave an internal error; one inheriting from a class that doesn't exist was accepted.
  • A PROCEDURE method used as a value gave NULL in silence.
  • A mistake on the first word of a program was reported differently from every other syntax error.
  • An IMAGE row written without quotes was reported on the line above, with a garbled message.

holy moly, a programming language? heh.

(+1)

I’ve been working on it for a couple of years, and a month ago I decided it was mature enough to publish. The idea is to help students and beginners get into programming organically and easily, picking up skills they can take with them to other languages.

(1 edit)

SIMPL 1.3.1 is out, and it’s all about the User Manual. Every chapter now ends with its Key points, a new glossary gathers 181 key terms, and new diagrams show, step by step, what happens inside a program as it runs. Reading a chapter, reviewing it before a test, finding a term again: the manual is ready for all three. The language is unchanged: every program written for 1.3 runs exactly as before.

A first program in a minute

Meet GU{I}DE now fits on one screen: a map of the window and a five-step Quick start. The full tour of the environment, from the debugger to the menus, has moved to a new appendix, GU{I}DE in detail, for when you want to look something up. And Chapter 1 now asks you to make a mistake on purpose, right after Hello, world: delete a quote, run, and read the error report. Errors become something to read, not something to fear.

Key points and a glossary

Every chapter now ends with its Key points: six to eight lines that sum it up, with the key terms in bold. Each of those terms is explained in the new Glossary, 181 entries in alphabetical order, each pointing to the chapter that introduces it.

Diagrams, from the first step to the last

Memory, the order of evaluation, the flow of a loop: a program doesn’t show them, so the manual draws them. Where an idea appears for the first time, the diagram follows it all the way: every pass of a bubble sort, the call stack of a recursive function, a linked list, a binary tree growing one insertion at a time.

Objects, one idea at a time

Chapter 12 now opens with From a record to a class, in three steps, and draws what DECLARE and NEW each make: the variable, and the object it refers to. It’s the heart of object-oriented programming, so it gets a picture of its own. Chapter 13 explains how SIMPL finds a method, so overriding, inheriting and SUPER all follow one rule.

How to update

Download the new simpl.exe (Windows) or simpl.appimage (Linux) and put it in place of the old one: your settings, programs and libraries are next to it and are kept, and so are your bookmarks in the manual. One file that comes with SIMPL has changed, programs/tetromino_tumble.simpl. SIMPL never overwrites your copy, which still works; to get the new one, rename the old file (for example to tetromino_tumble_1.3.simpl) and start SIMPL 1.3.1.

Everything in this release

  • Meet GU{I}DE fits on one screen, with a Quick start; the full tour is in Appendix I, GU{I}DE in detail.
  • Break it on purpose: Chapter 1 shows how to read an error report.
  • Key points at the end of every chapter.
  • A glossary of 181 terms, Appendix J.
  • Diagrams that follow each new idea from the first step to the last.
  • Objects introduced one idea at a time (Chapters 12 and 13), and The stack as a class (Chapter 21).
  • Every example and exercise runs exactly as printed; reference material, such as the lists of reserved words, is gathered in the appendices.

The SIMPL User Manual is now also an e-book. Download it from the SIMPL page, next to the Windows and Linux builds, and read it on a phone, a tablet or an e-reader: on the bus, in a free period, or anywhere away from the computer.

It is the same book that is built into GU{I}DE: 31 chapters, from your first program to your first game, with more than 400 programs, 81 diagrams, more than 200 exercises with their solutions, and a glossary of 181 terms.

Made to be read on a small screen

  • Laid out as a book: each chapter opens on a page of its own, headings never end a page, and short programs are never split across two pages.
  • Type made for screens: Literata for the text and JetBrains Mono for the code, where 0 and O, or 1, l and I, can’t be confused.
  • Code you can read: programs in GU{I}DE’s colors, their output framed apart. A line too long for the screen wraps under its own indentation, so the structure of the program stays clear.
  • Real diagrams: the diagrams that show what a program doesn’t (memory, calls, loops) are drawn as images, with lines and arrowheads, and you can zoom in on them.
  • Easy to find your way: a full table of contents with every chapter and section, links between sections, and a bar of letters to open the glossary.

Tested with Thorium Reader on the PC and Google Play Books on Android: both are recommended. Some other readers apply their own styles and may change the layout.

Free to share

The manual is free to pass on. You can copy it and share it with anyone, in any medium or format, under the CC BY-NC-ND 4.0 license: name the author, keep it unchanged, and don’t use it for commercial purposes. The programs in the book, including the solutions to the exercises, are under the MIT No Attribution license, so you can use, copy and change them for any purpose, in your own programs, homework and lessons, without asking. Appendix F has the details.

Know someone who is learning to code? Send them the book.

The book and the IDE

The e-book is a companion to GU{I}DE, not a replacement. In GU{I}DE, Open in editor puts any program of the manual in the editor, ready to run, and More › at the end of an error message opens the page that explains it. The e-book mentions these buttons: you’ll find them in GU{I}DE.

Thanks

The e-book was suggested by OnyxAsm23 on the community board. Thank you! Ideas like this one shape SIMPL, so keep them coming.

SIMPL and GU{I}DE: free download for Windows and Linux at simpl-pseudocode.itch.io/simpl, with the e-book next to them.

SIMPL 1.3.3 is out, a free download for Windows and Linux. The standard library grows from six libraries to eight, with more than 110 new routines and eight new classes, and from now on an update of SIMPL brings the new copies of the libraries and programs with it. Hints now speak about your program, and a file the system refuses is explained in words.

Upgrading from 1.3.2? Three changes in the libraries can affect your programs: see Upgrading from 1.3.2 at the end.

Help others find SIMPL

SIMPL is made by one independent developer, with no company or advertising behind it: it grows when the people who find it useful tell others about it. If you enjoy SIMPL, whatever you use it for, here is how you can help others find it:

  • Rate it on itch.io: simpl-pseudocode.itch.io/simpl/rate. Five stars take ten seconds and help SIMPL show up where people look for tools. Made a game, solved a tricky problem, or just ran your first program? Add a review and tell the story: it’s what convinces the next person to hit Download.
  • Like it on AlternativeTo: SIMPL on AlternativeTo. A like takes one click; a detailed review helps people choose the right tool, and yours might be the one that tips them toward SIMPL.
  • Share the page with anyone it could help, or on social media: simpl-pseudocode.itch.io/simpl.

Thank you! And if something doesn’t work as it should, tell me on the community board.


A bigger toolbox

Splitting a sentence into words, sorting with four different algorithms, a median or a standard deviation, the day of the week of a date, a dictionary that counts words: what you used to write from scratch is now one IMPORT away. Each new routine does what the same function of Python does, and Appendix E of the manual describes each one with an example.

  • mathlib: rounding (Floor, Ceiling, Round, RoundTo), Sign, Clamp, even and odd numbers, square roots and perfect squares, digits, combinations and permutations, Fibonacci, Hypotenuse, Exp, trigonometry in radians and degrees, number bases from binary to hexadecimal, random numbers and dice. IsPrime is much faster on large numbers.
  • stringlib: searching (Find, FindLast, CountSubstring, StartsWith, EndsWith), replacing, padding and centering, trimming one side, CapitalizeWords, CaesarShift, tests on characters and words, and the procedures Split, SplitWords and Join.
  • arraylib: four more sorting algorithms (selection, insertion, merge and quick sort), IsSorted, Shuffle, inserting, removing, filling and rotating elements, the position of the largest and smallest, and the routines for arrays of REALs and of STRINGs.
  • iolib: reading and writing CSV lines, the format spreadsheets save.
  • structures: the classes StringStack and StringQueue, List and StringList, PriorityQueue, Dictionary, Tally (a Dictionary that counts) and BinaryTree, the tree of Chapter 22.
  • New statlib: median, mode, range, variance, standard deviation and percentiles.
  • New datelib: leap years, days in a month, the day of the year and of the week, days between two dates, the names of days and months.

The new names. A program of your own that defines one of these and IMPORTs their library stops at the IMPORT (see Compatibility). statlib IMPORTs arraylib, so a program that IMPORTs statlib has the names of arraylib too.

  • mathlib: ArcTan, Ceiling, Clamp, Combinations, Cos, CountDigits, Degrees, DigitSum, Exp, Fibonacci, Floor, FromBase, FromBinary, FromHex, Hypotenuse, IntegerSqrt, IsEven, IsOdd, IsPerfectSquare, Permutations, Radians, RandomInteger, RandomReal, RollDice, Round, RoundTo, Sign, Sin, Tan, ToBase, ToBinary, ToHex.
  • stringlib: CaesarShift, CapitalizeWords, Center, CountSubstring, CountWords, EndsWith, Find, FindLast, IsDigit, IsLetter, IsLower, IsUpper, IsWholeNumber, Join, PadLeft, PadRight, Replace, ReplaceFirst, Split, SplitWords, StartsWith, TrimLeft, TrimRight.
  • arraylib: AverageReals, BinarySearchReals, BinarySearchStrings, BubbleSortReals, BubbleSortStrings, FillArray, InsertAt, InsertionSort, IsSorted, LinearSearchReals, LinearSearchStrings, MaximumReals, MaximumStrings, MergeSort, MinimumReals, MinimumStrings, PositionOfMaximum, PositionOfMinimum, PrintArrayReals, PrintArrayStrings, QuickSort, QuickSortPart, RemoveAt, RotateArray, SelectionSort, Shuffle, ShuffleReals, ShuffleStrings, SumReals.
  • iolib: AppendCsvLine, JoinCsv, ReadCsvColumn, SplitCsv.
  • structures: BinaryTree, Dictionary, List, PriorityQueue, StringList, StringQueue, StringStack, Tally.
  • statlib: Median, Mode, Range, PopulationVariance, SampleVariance, PopulationStandardDeviation, SampleStandardDeviation, Percentile, and each of them with Reals at the end (MedianReals…).
  • datelib: DayName, DayNumber, DayOfWeek, DayOfYear, DaysBetween, DaysInMonth, IsLeapYear, IsWeekend, MonthName.

Hints about your program

A hint now speaks about what your program shows, and following it to the letter leads to a program that works.

  • An index out of bounds written as a number: Write an index from 1 to 3 here. One step out: The last index is 5: if this index comes from a loop, make it stop at 5. Further out, the hint gives the value and asks where it comes from.
  • The wrong number of values in a call names the parameters: Power has 2 parameters, Base and Exponent: give one value for each, in this order. The same for a built-in function, LENGTH takes 1 value: LENGTH(S)., and for a method of the Canvas or of Sound.
  • A division by zero: by a 0 you wrote, write another number; by a variable, Count is 0 here, with the IF that checks it.
  • Text where a number goes: the hint depends on what the text holds, "13", "13.5" or "thirteen".
  • Values written by hand: a DATE or TRUE between quotes is shown without them; a DECLARE without its colon, and a whole group of elements assigned at once, get the line rewritten with your names; a pixel outside the Canvas gets the size of your Canvas.
  • A pointer or NULL stored or compared where a number goes has a hint of its own.

Files the system refuses

When the system refuses a file, SIMPL now explains why in plain words, with a hint, instead of the system’s own phrase (Permission denied).

  • The reasons: the system doesn’t allow it: the file may be read-only, or open in another program (a CSV open in Excel, on Windows), the disk is full, the disk can only be read, its name is too long.
  • A character Windows doesn’t allow in a name, such as "a?.png": its name has ‘?’, which a file name can’t have.
  • Everywhere a file is used: the file statements, saving a Canvas, IMPORT, and GU{I}DE’s Open, Save and Print.

The User Manual

The tables of the appendices are easier to read at a glance, some sections have clearer titles, and the e-book is updated with the manual.

  • Tables you can read at a glance. The tables of the appendices follow the same rules: what you look up first, the chapter last, the guide marked Yes or No, short examples, with the details below. Code in a table has the colors of code, and the tables of a section line up.
  • Clearer titles: Length and parts of a string, Worked example: counting coins with an array, Inserting a record: the guide’s example, Reading an address never written, Before and after the recursive call, Choosing the next piece: the 7-bag, Checking every move: IsValidPosition, How a line is run: the pipeline, and Part III — Beyond the Cambridge guide.
  • One name for each command: the toolbar’s button is User Manual, as in the Help menu, and Run Selection has the same name in the menu and on the toolbar.
  • The e-book, simpl_manual.epub, is updated with the manual.

Also in this release

  • A name of a CONSTANT of your program can be the name of a parameter, a local or a property, in your routines and in a library’s: CountChar of stringlib runs in a program with CONSTANT Count = 5.
  • More › stays in one piece at the end of a line in the console.
  • Two clearer diagnoses: a FUNCTION whose first line misses RETURNS gets Expected RETURNS at the end of this line, and DECLARE X Y : STRING gets A comma is missing before Y.

Upgrading from 1.3.2

Compatibility. A program runs as before, with three exceptions, all in the libraries:

  • A name of your own that a library now uses. A program that defines a routine, a class or a CONSTANT with one of the new names (listed under A bigger toolbox), and IMPORTs the library that has it, stops at the IMPORT: stringlib.simpl defines IsDigit, which is already defined on line 2 of the program as a FUNCTION. Give yours another name, or use the library’s.
  • CountChar counts one character. Its second value is now a CHAR, so CountChar(Text, "an") stops, where it gave 0. To count a longer piece of text, use the new CountSubstring.
  • Some results change, to the exact ones: Power takes a negative exponent (Power(2, -1) gives 0.5, where it gave 1.0), NewtonSqrt is exact to about 12 digits for a number below 1 too, GCD of negative numbers is never negative, and LCM of 0 gives 0, where it stopped. A Stack or a Queue holds as many items as its capacity, beyond 1000 too, and OUTPUT of a whole one shows that many elements.

The words of many hints are new, which matters only if you quote them in your own notes.

  1. Put the new simpl.exe (Windows) or simpl.appimage (Linux) in the same folder as the old one, replacing it. Your settings (simpl_settings), your programs (programs) and your libraries (lib) are next to it, and they are kept.
  2. The libraries update themselves. At its first start, SIMPL 1.3.3 replaces each library in lib that came with an earlier version and that you never changed, and adds the two new ones, statlib and datelib. A library you changed is never touched: SIMPL keeps yours and says so in the console, once. To get the new one, rename yours (for example to stringlib_mine.simpl) and start SIMPL again; then change the IMPORT of the programs that need your version. The programs in programs haven’t changed.
  3. statlib needs the new arraylib. If you kept a changed arraylib, the statistics of REAL arrays stop with Undefined procedure: BubbleSortReals: rename yours, as above.
  4. Bookmarks in the User Manual. Eight sections have a clearer title (see The User Manual), and a bookmark in one of them, or in the introduction of Part I or Part III, now opens the manual near its start: go to the section and bookmark it again. Every other bookmark works as before.

If you put SIMPL 1.3.3 in a new, empty folder instead, it starts with fresh copies of everything; copy your own programs over from the old programs folder.