Craft Basic version 1.7 released
I wasn't planning on updating just yet, but I found some issues that needed fixing.
The PRIME() function was returning 1 on true. It will now return -1 on true. This way it is compatible with NOT(). For example, NOT(PRIME(24)) evaluates to -1.
The ROUND() function wasn't working at all due to a few typos. Now fixed.
I decided to overload the square root function, It may now be written as SQR() or SQRT(). I wanted it to be just SQRT(), but after some thought I decided it would be good to include the traditional BASIC SQR() spelling.
I found a major issue with the FOR loop structure again. It was a silly parsing issue where I was not accounting for the spaces around TO and STEP. I think it's all good now. Did a lot of testing. For example, the following code was not executing correctly before this fix. Now you may have variable names with the words to and for in the name as things should be. It was just an issue with the FOR loops.
Example:
define tostep = 1, stepto = 10, steps, stepp = 2
for steps = tostep to stepto step stepp
print steps
next steps
Version 1.7 also comes with 10 new examples. This makes 100 total!
Files
Get Craft Basic
Craft Basic
Interactive Integrated Development Environment and Interpreter
Status | Released |
Category | Tool |
Author | Lucid Apogee |
Tags | basic, code, game-development, interpreter, programming |
More posts
- Craft Basic version 1.7.1 releasedDec 20, 2023
- New Keywords and Examples With V1.6 UpdateAug 04, 2023
- huge update to version 1.5!Jun 29, 2023
- MAJOR Update to version 1.4Apr 06, 2023
- Update to version 1.3Mar 24, 2023
- Update to version 1.2Mar 09, 2023
- Version 1.1 major updateMar 01, 2023
- Major Update Including New CommandsFeb 22, 2023
- Major Update Including New Example GameFeb 16, 2023
Leave a comment
Log in with itch.io to leave a comment.