Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Viewing post in B++

NEW (AND UPCOMING) B++ CHANGES

Tokenizer

  • Added inline comment support (#) outside of strings.

  • Correctly handles escaped quotes inside strings (\").

  • Preserves line numbers for better error reporting.

Expression Evaluation

  • Supports more literal types via ast.literal_eval: strings, numbers, booleans, lists, tuples.

  • Added fallback safe eval for advanced expressions.

  • Smarter + handling: concatenates strings if any operand is a string, otherwise performs numeric addition.

Conditions

  • Added support for == and != (was missing before).

  • Full set of comparison operators now: is, is not, <, >, <=, >=, ==, !=.

  • Falls back to truthiness check if no operator matches.

Block Handling

  • Fixed bugs with if/elif/else nesting.

  • elif and else no longer incorrectly increase nesting depth.

  • Cleaner and more reliable collect_block parsing.

Math and Variables

  • Division automatically converts integers back (10 / 2 → 5 instead of 5.0).

  • Safer error messages when adding or multiplying incompatible types.

Extra Features

  • New import module support (with identifier safety check).

  • --debug mode: shows environment after each line.

REPL

  • Introduced start command to run buffered code explicitly.

  • Improved block depth tracking for multi-line blocks.