PDA

View Full Version : PropBasic Wish List



FriedV
11-10-2011, 10:10 AM
Perhaps it would be useful to have a wish list for the PropBasic compiler.

So I begin with

1.
SELECT-CASE-END SELECT statement

Syntax:


SELECT CASE var
CASE test1 : statements
[CASE test2 : statements ]
CASE ELSE : statements
END SELECT


Example


Do

Input"Enter value (0-255) ", I
SelectCase I
Case 1 :Print"1"
Case 2 :Print"2"
Case 3 To 5 :Print"3-5"
CaseIs>= 10 :Print">= 10"
CaseElse:Print"Not in Case statement"
EndSelect
Loop
End

'note that a Boolean expression like > 3 must be preceded
'by the IS keyword

Example & Syntax is from BasCom AVR Compiler.

2. Continuation character to split long PropBasic lines.

Some other wishes anybody?

Cheers, Friedrich

Duane C. Johnson
11-10-2011, 03:59 PM
The most important thing for me is
SD card support.
Especially with random access to elements in the file.
Duane

Sandfire
11-10-2011, 05:39 PM
Actually, I would like both. SD card support as well as Select-Case statements would be great.

davidsaunders
11-10-2011, 06:46 PM
I would like to see parameterized subroutines. As to the SD stuff PropBASIC is fast enough that you can write your own drivers so why waste time building it into the compiler. I would like to see a select case statement.

FriedV
11-12-2011, 03:40 PM
Native support for IEEE Float point would be very nice, for the uM-FPU32 / uM-FPU64.
@Bean Probably a lot of work....