Skip to content

VideoCarp/dromedary-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dromedary Lang

In-progress compiled language.
This language is aimed at mostly performance, but also simplicity.

Alert!

I'm rewriting this entire language, the syntax is getting changed, it won't compile to C, and it will be properly done.
It will also be much, much faster.

Currently read-only unless contributing or testing, completely unready. Do not use any of the files in this repository elsewhere.

Both the lexer and syntax analyzer are unfinished.

Notices:

  • The language is a work in progress. Currently does not run.

Features

Here are some features that will be implemented in this lang:

  • Easy interoperation with C by typing #interop in the line. Example:
int main() {
    char msg[] = "Hello World!"; #interop
    printf("%s", msg); #interop
}
  • Macros. This language features macros, which are loaded right after the lexer.

  • Standard libraries Planning to include standard libraries, i.e one of them is 'graphics'.
    Example:

import <graphics>
int main() {
   graphics.draw(x,y,color)
}

Progression

  • Lexer (will be rewritten COMPLETELY to speed up, no regex nor splits will be used.)
  • Error Handling
  • Syntax analysis (being worked on)
  • Code generation

Releases

No releases published

Packages

No packages published

Languages