Author Topic: Progress of the PluriBASIC implementation of Oxygen  (Read 167 times)

0 Members and 1 Guest are viewing this topic.

Brian Alvarez

  • Newbie
  • *
  • Posts: 45
    • PluriBASIC
Progress of the PluriBASIC implementation of Oxygen
« on: May 02, 2018, 06:33:22 PM »
It now supports:

#PREFIX
WITH / END WITH
MACROS
FUNCTION, SUB, FASTPROC, CALLBACK
FOR/NEXT
DATA fields + READ$() + DATACOUNT.
GOTO, GOSUB, RETURN
IF / THEN / ELSE / ELSEIF /END IF (including single line IF blocks with multiple statements)
TYPE
DIM (partially)
REDIM (partially)
REDIM PRESERVE (partially)
RESET (partially)
LOCAL
STATIC
REGISTER

Brian Alvarez

  • Newbie
  • *
  • Posts: 45
    • PluriBASIC
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #1 on: May 02, 2018, 06:37:10 PM »
STDOUT

Brian Alvarez

  • Newbie
  • *
  • Posts: 45
    • PluriBASIC
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #2 on: May 02, 2018, 06:43:45 PM »
SELECT CASE / END SELECT as follows:

Code: [Select]
   SELECT CASE IntVar&
      CASE 1
      CASE 2
      CASE 3 TO 10
      CASE 11, 15, 21
      CASE ELSE
   END SELECT

SWITCH asfollows:

Code: [Select]
switch IntVar& {
    case 1 :
       break
    default:   // for the moment it doesnt support Oxygen's "case else", to be compliant with the standard.
}

John

  • Hero Member
  • *****
  • Posts: 3064
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #3 on: May 02, 2018, 06:45:54 PM »
Outstanding Brian!

I'm taking a deep dive into PHP with an open source accounting package I'm working with.

Brian Alvarez

  • Newbie
  • *
  • Posts: 45
    • PluriBASIC
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #4 on: May 02, 2018, 06:50:00 PM »
#INCLUDE ""
#INCLUDE ONCE ""
#INCLUDE THIS ONCE

#IF
#ELSEIF
#ELSE
#ENDIF
%DEF()

Brian Alvarez

  • Newbie
  • *
  • Posts: 45
    • PluriBASIC
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #5 on: May 02, 2018, 07:01:18 PM »
DO / LOOP
WHILE / WEND

Brian Alvarez

  • Newbie
  • *
  • Posts: 45
    • PluriBASIC
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #6 on: May 02, 2018, 07:28:06 PM »
Hexa0decimal values:
Code: [Select]
&HFFFFFF
Octal values:
Code: [Select]
&O123456
Binary values:
Code: [Select]
&B11010010

Brian Alvarez

  • Newbie
  • *
  • Posts: 45
    • PluriBASIC
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #7 on: May 06, 2018, 01:37:53 PM »
UBOUND
LBOUND

John

  • Hero Member
  • *****
  • Posts: 3064
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #8 on: May 06, 2018, 02:00:14 PM »
Cool!

When will you be asking for testing help?

Can I assume this will be both 32/64 bit?
« Last Edit: May 06, 2018, 08:40:08 PM by John »

Brian Alvarez

  • Newbie
  • *
  • Posts: 45
    • PluriBASIC
Re: Progress of the PluriBASIC implementation of Oxygen
« Reply #9 on: May 06, 2018, 11:41:34 PM »
 Hello John, i will need testers later on. And yes, you can select between 32 bits and 64 bits with:

Code: [Select]
#COMPILER OXYGEN
#COMPILE EXE
#OPTIONS X32

and:

Code: [Select]
#COMPILER OXYGEN
#COMPILE EXE
#OPTIONS X64