Skip to main content

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

B++

A topic by MrGuineaBird created 10 days ago Views: 195 Replies: 2
Viewing posts 1 to 3



B++ Programming Language
B++ is a beginner-friendly programming language that is similar to Python, designed to be easy, readable and fun. It utilizes plain English commands and has a lightweight interpreter that runs in the terminal. B++ does away with complex syntax in favor of natural phrases, such as:
  • say "Hello World!" → prints text
  • set x to 5 → creates and updates variables
  • add 1 to x / subtract 2 from x / multiply x by 3 / divide x by 4 → math operations
  • repeat 5 times: ... end → loops
  • if x is 10: ... end → conditional logic


B++ 1.0 RELEASED
 B++ PAGE RELEASED:

https://mrguineabird.itch.io/bpp

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.