Scripting Language development
Posted: Sat Apr 14, 2012 6:39 pm
Hey guys, I would like to tell you about my new programming (scripting) language that I am developing, it is called Plywood and I am making a YouTube series "Programming Language Development" on Super4Programming channel.
This project is now stale, you can download the source here: http://www.sendspace.com/file/5gqpdm
This script language is developed into a interpreter which is pretty much working, I just need to decide what else the language needs (as well as fixing gliches).
More information:
Youtube channel: Super4Programming
Programming language name: (codename)Plywood
Functionality:
Here is a console dump of that script being interpreted
So would you guys be interested in seeing this language in action?
This project is now stale, you can download the source here: http://www.sendspace.com/file/5gqpdm
This script language is developed into a interpreter which is pretty much working, I just need to decide what else the language needs (as well as fixing gliches).
More information:
Youtube channel: Super4Programming
Programming language name: (codename)Plywood
Functionality:
- Iterations (while, for and foreach)
Logical expressions e.g if(((1*1*(1+(1*0))))==1||2==2||(3+1>2)) { }
Hex, binary and decimal support (including base conversions from either 3) (im including octal very soon (base 8))
String/Decimal/Integer definitions
Calculation supported (^^ probably guessed from the logical expression...)
File system (my own and the host file system), console, math, array (with sorting :D), string and registry functions included
Include other scripts
Delegation
Comments (blocked and single line)
Security (turn access to functions on and off)
Multithreading support
Arrays
Methods
Any numerical value is supported (way over 256bit integers)
Win32 library call support
Common Language Runtime support
Multi-platform (thanks to Mono)
Compiler (EXTREMELY EARLY YET...)
Code: Select all
//Define the integers to read to
def n1 = 0
def n2 = 0
//Get the user inputed numbers
print("Number 1 < ")
n1 = readl()
print("Number 2 < ")
n2 = readl()
//Add the number together (printl = print line)
printl("The sum of " & n1 & " and " & n2 & " is " & (n1+n2))
//Loop from n1 to n2
for(def j = n1, j != n2, j = j + 1) {
printl("Counted to " & j)
//First?
if(j == n1) {
printl("This is the first entry!")
}
}
//Jump to the third line
goLine(2)
Code: Select all
Number 1 < 0
Number 2 < 5
The sum of 0 and 5 is 5
Counted to 0
This is the first entry!
Counted to 1
Counted to 2
Counted to 3
Counted to 4
Number 1 <