COSt PLAN

[pp] → [cost] → [vasm] → bytecode ->[cvm]

pp = Pre=Proccessor

COST = High level language

VASM = Virtual Assembler

CVM = Cost Virtual Machine

The platform is language agonostic. Anybody is free to make there own high-level language



PP is identiical to the C preproccessor

include

if

ifdef

ifndef

define

endif

COST

LET variable = equation

if statement then

elseif statement

else

endif



select case variable

case(constant

default

end selete



for var = number to number [step[

endfor



while statement

wend



do

loop statement



printbubble string



dim var as type

struct label

variables

end struct

input var



fire event function

declare [event] label(parameters)



ftype unction [event] label(parameters)

exit func ret-type

end func

goto label

label:

Components



common.lib

Exception Classes

Token Classess

Register classes

Parser



VASM

Variable handler

Syntax Error check

Code Generation

COST

Variable Handle

Syntax Check

Code Generation