1: The Shell
a. The Shellwill work exactly like Python's command line program does; runs Python commands. Carbon's shell will also include standard bash commands, like "cd", "ls", "mkdir", and more. The syntax for the system commands will be somewhat the same, and can be incorporated into Carbon's syntax, so Carbon Shell Tools will be much like windows batch files.
2: Carbon2
a. Carbon2 is the actual languge. You type code for command line programs with this, and save it as a ".cb" file, which can be double clicked (or $ carbon script1.cb'd) to run.
b. Carbon2 is not only used for command line applications. It is also what makes the second language work: Making GUIs interactive.
3: Carbon3
a. Carbon3 is the language that makes GUIs. It is a markup languge, so if you know HTML you will get used to it quickly.
I have prepared a few examples of code:
CarbonSH Dialouge:
- Code: Select all
[carbon]$ x = 2
[carbon]$ print(x)
x
[carbon]$ math(x+2)
4
[carbon]$ math(2 * x)
4
[carbon]$ str("a"+x)
a2
Carbon2 Simple Calculator:
- Code: Select all
func data(){
print("Enter a mathematical expression:\n");
return get.input();
}
$x = data()
$y = math($x)
print($y);
Carbon3 Non interactive GUI:
- Code: Select all
[c3 title="LOL I DOES NATHING"]
[button value="CLICK ME. Or die." pos="centered"]
[/c3]
Carbon Program:
GUI File:
- Code: Select all
[c3 title="Calc"]
Input: [inputbox name="data"]
Output:[inputbox name="out"]
[button name="1" value="1" onclick="data.value + '1'"]
[button name="2" value="2" onclick="data.value + '2'" //And so on with the onclicks.]
[button name="3" value="3"]
[button name="4" value="4"]
[button name="5" value="5"]
[button name="6" value="6"]
[button name="7" value="7"]
[button name="8" value="8"]
[button name="9" value="9"]
[button name="0" value="0"]
[button name="+" value="+"]
[button name="-" value="-"]
[button name="*" value="*"]
[button name="/" value="/"]
[button name="=" value="="]
[link carbon2 file="Usr/Jefflalala/Carbon/calc.cb"]
[/c3]
Carbon2 File
- Code: Select all
#gui[1] <Usr/Jefflalala/Carbon/calc/calc.cbg>
$x = gui[1].data
$y = math($x)
gui[1].out == $y
As you can see, it's heavily influenced by HTML/BBCode (lol), JavaScript, PHP, Perl, Python (CarbonSH), and I think I threw a bit of C(++) in there too.
However, I'm just not sure how to start the development. I have STFW over and over into the wee hours of the morning, but to no avail. I'm at a loss. Can some of you point me in the correct direction? I'm not asking for code to steal from.
Also, I would greatly appreciate feedback on the language. Do you like the syntax? Do you like the idea that it is very heavily influenced from my old HTML/JS days? I think it's good that soon, web developers may start cranking out desktop applications. I also hope it will get ported to all three main OS choices out there (Linux, Mac OS X, Windows).
And one more thing, what language would you suggest for a feat like this?



