Craft Basic [programming interpreter]

Submit portable freeware that you find here. It helps if you include information like description, extraction instruction, Unicode support, whether it writes to the registry, and so on.
Message
Author
basicgames
Posts: 15
Joined: Fri Feb 10, 2023 9:40 am
Location: Arizona
Contact:

Re: Craft Basic [programming interpreter]

#16 Post by basicgames »

Version 1.2 has been released.

I had to rush this one out to fix a critical, but uncommon bug with for/next loops.

A new example called eulermethod.bas has been included.

Code: Select all

'euler method example

precision 4

let s = 2
gosub euler

let s = 5
gosub euler

let s = 10
gosub euler

end

sub euler

	cls
	cursor 1, 1
	wait
	print "step: ", s

	let b = 100
	let y = 100

	for t = 0 to b step s

		print t, " : ", y

		let y = y + s * (-0.07 * (y - 20))

		gosub delay

	next t

	alert "step ", s, " finished"

return

sub delay

	let w = clock

	do

		wait

	loop clock < w + 200

return

basicgames
Posts: 15
Joined: Fri Feb 10, 2023 9:40 am
Location: Arizona
Contact:

Re: Craft Basic [programming interpreter]

#17 Post by basicgames »

​I have released version 1.3 to fix another issue with the for loops. They should be even more accurate and stable now. The issue was happening with things such as FOR i = -1 TO 0 STEP -1. No wonder.

There's now a QUOTE keyword to go along with COMMA and NEWLINE for output formatting.

I also "improved" the line number display to be more like margins. This required including a font file, increasing the size of the download, but making sure compatibility is kept with Windows 95 though 10.

A Van Eck sequence example has been added to the examples folder.

Code: Select all

'van eck sequence example

define limit = 1000

dim list[limit]

print "calculating van eck sequence..."

for n = 0 to limit - 1

	for m = n - 1 to 0 step -1

		if list[m] = list[n] then

			let c = n + 1
			let list[c] = n - m

			break m

		endif

		wait

	next m

next n

print "First 10 terms: "

for i = 0 to 9

	print list[i]

next i

print "Terms 991 to 1000: "

for i = 990 to 999

	print list[i]

next i

end

User avatar
Midas
Posts: 6455
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Craft Basic [programming interpreter]

#18 Post by Midas »

@basicgames: Do you mind if the topic is moved to "Development" -- it appears more appropriate for what we're seeing from an user point of view and on more than one level... :|

basicgames
Posts: 15
Joined: Fri Feb 10, 2023 9:40 am
Location: Arizona
Contact:

Re: Craft Basic [programming interpreter]

#19 Post by basicgames »

I do not mind, although I would like to humbly request a quick review of the latest version as I have made many improvements and consider it to be stable.

As far as the not working on Windows 10 thing? I don't know. It works on the ones I tested. Oldergeeks uploaded it as well and have screenshots of it working on Win 10.

As it's a programming language, I plan to continually release updates to prevent it from stagnating. I understand if this language is not a fit for the archive yet.

I don't have a community surrounding my product yet, so any feedback is helpful.

User avatar
Midas
Posts: 6455
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: Craft Basic [programming interpreter]

#20 Post by Midas »

Right. Kinda swamped ATM with the passing of a close relative, will see what I can do in the near future...

User avatar
Andrew Lee
Posts: 2948
Joined: Sat Feb 04, 2006 9:19 am
Contact:

Re: Craft Basic [programming interpreter]

#21 Post by Andrew Lee »

I just took a stab at v1.3, and I still encounter the black screen problem with all the GUI examples.

It could be something specific with my system, but unfortunately, it also means I can't do anything with it.

If you like, just add a private entry to the database and post the link here. I won't vote on it, but maybe others will.

basicgames
Posts: 15
Joined: Fri Feb 10, 2023 9:40 am
Location: Arizona
Contact:

Re: Craft Basic [programming interpreter]

#22 Post by basicgames »

Midas wrote: Sun Mar 26, 2023 1:35 pm Right. Kinda swamped ATM with the passing of a close relative, will see what I can do in the near future...
My condolences. I understand.
Andrew Lee wrote: Mon Mar 27, 2023 12:34 am I just took a stab at v1.3, and I still encounter the black screen problem with all the GUI examples.

It could be something specific with my system, but unfortunately, it also means I can't do anything with it.

If you like, just add a private entry to the database and post the link here. I won't vote on it, but maybe others will.
I wish I knew what was causing that. Thank you for trying it out again.


I appreciate being able to share my program here regardless of any votes.

Post Reply