Hello all, I've been working on my little projects of do-dads and what not for a little bit using Great Cow Basic, and I'm getting more and more adjusted to Assembly Language and not being so "scared" of it. The more and more I look at the structure of Assembly language, it's not even close to complicated as C++ syntax. Anyways, I have a idea to write a new language called "Shawarma" for a future project and just wanted input on the ideas and concepts.
The hole idea of this language is to really make it straight forward and easy to remember without having to use a IDE such as Great Cow which is still covered in bugs. How I plan on accomplishing a task like this is to write a Shawarma compiler that takes the source code and converts it to a assembly and then takes that assembly source file into a assembler automatically which would output a hex file.
Here is a example Shawarma source file:
I wanted the language to feel like a cross with C++, and BASIC, but make it very easy to use for even a 12 year old to use it and could even start writing addons to the language for different microcontrollers out there after a couple of weeks understanding writing a program.
Key Features of Shawarma (Compiler):
Not Case Sensitive.
Auto Variable Types.
(e.g: x = 0 automatically be seen as "int x = 0")
Easy to define microcontroller headers for macros/error handling.
Microcontroller cross platform capabilities for different assemblers.
USB Communication Functions for USB enabled microcontrollers, LCD Functions, and
more.
So how does it sound?
If your wondering why I bother is because I want the community to grow, and make people feel less they have to be richy rich to pay for a compiler that is $400 to $800 dollars to give them verity of languages they can use.
I have 6 years of prior experience writing in C++ from everything from 3D file format loading, OpenGL rendering, Windows and Mac programming, and I can put the hole compiler together on my own around 5 months of building, debugging and testing. I don't mind working on a project like this alone, but a team of more then one person would be nice. People who are depended to their work would be great, even if they can't write code to save their life.
The hole idea of this language is to really make it straight forward and easy to remember without having to use a IDE such as Great Cow which is still covered in bugs. How I plan on accomplishing a task like this is to write a Shawarma compiler that takes the source code and converts it to a assembly and then takes that assembly source file into a assembler automatically which would output a hex file.
Here is a example Shawarma source file:
Rich (BB code):
#device PIC16F84
#description "This is a test!"
#author "Ajm113"
#config _RC_OSC + WDT_FF + _PWRTE_ON
//MACRO Test
#define LED PORTA.0
//Variable Test
byte ProgramValue = 0
bool bCanWait = false
int iNumber = 0
Array array_test = new Array[100]
MainLoop:
Dir LED Output
Dir PORTB.0 Input
Set LED High
If bCanWait
wait 1000
EndIf
Set LED Low
while true
If True
break
Endif
EndWhile
For iNumber = 0, i < 10, iNumber++
EndFor
Goto MainLoop
// This function just returns true.
// Doesn't really do anything...
Func bool Test_Func byte x, bool y
//....
return true
EndFunc
Key Features of Shawarma (Compiler):
Not Case Sensitive.
Auto Variable Types.
(e.g: x = 0 automatically be seen as "int x = 0")
Easy to define microcontroller headers for macros/error handling.
Microcontroller cross platform capabilities for different assemblers.
USB Communication Functions for USB enabled microcontrollers, LCD Functions, and
more.
So how does it sound?
If your wondering why I bother is because I want the community to grow, and make people feel less they have to be richy rich to pay for a compiler that is $400 to $800 dollars to give them verity of languages they can use.
I have 6 years of prior experience writing in C++ from everything from 3D file format loading, OpenGL rendering, Windows and Mac programming, and I can put the hole compiler together on my own around 5 months of building, debugging and testing. I don't mind working on a project like this alone, but a team of more then one person would be nice. People who are depended to their work would be great, even if they can't write code to save their life.
Last edited: