Shop OBEX P1 Docs P2 Docs Learn Events
PropBasic Wish List — Parallax Forums

PropBasic Wish List

FriedVFriedV Posts: 77
edited 2011-11-12 08:40 in Propeller 1
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

Comments

  • Duane C. JohnsonDuane C. Johnson Posts: 955
    edited 2011-11-10 08:59
    The most important thing for me is
    SD card support.
    Especially with random access to elements in the file.
    Duane
  • SandfireSandfire Posts: 32
    edited 2011-11-10 10:39
    Actually, I would like both. SD card support as well as Select-Case statements would be great.
  • davidsaundersdavidsaunders Posts: 1,559
    edited 2011-11-10 11:46
    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.
  • FriedVFriedV Posts: 77
    edited 2011-11-12 08:40
    Native support for IEEE Float point would be very nice, for the uM-FPU32 / uM-FPU64.
    @Bean Probably a lot of work....
Sign In or Register to comment.