A new programming language
Posted: Tue May 24, 2011 8:43 am
This is just one of my day dreams, but:
A "general purpose" programming language that uses a framework to run.
It's compiled result is a bit like a windoze .exe or java jar file, except in a VFS image instead of a compressed file (i know that file size would be large). The VFS image would be loaded by the language's framework for the OS it's running on, parsed, and each file inside the VFS could be an "object" file.
The programming language could even be as basic as TIBasic:
and parsed into the object files 'data.o', 'code.o', and 'funcs.o':
data.o
code.o:
funcs.o:
Also there's a possibility to use a credits file for programmer credits, but thats unrelated.
What do you think?
I may not be able to reply for a few days as the power in my neighborhood is out.
A "general purpose" programming language that uses a framework to run.
It's compiled result is a bit like a windoze .exe or java jar file, except in a VFS image instead of a compressed file (i know that file size would be large). The VFS image would be loaded by the language's framework for the OS it's running on, parsed, and each file inside the VFS could be an "object" file.
The programming language could even be as basic as TIBasic:
Code: Select all
new_string($var = "ASDF")
new_int(#i = call(func($var)))
prints("String: "+$var)
printnum(#i)
function(func(string))
decl(func {
return(str2num(%1))
})
data.o
Code: Select all
txtstr var "ASDF"
numstr i <funcs:func[data:var]>
Code: Select all
puts text <data:var>
puts num <data:i>
prog:exit
Code: Select all
function func [txtstr]
funcs:func <
convert txtstr numstr%0 %%0
ret %0
>
What do you think?
I may not be able to reply for a few days as the power in my neighborhood is out.