Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.
/ Core Public archive

A general-purpose programming language (WIP)

License

Notifications You must be signed in to change notification settings

zptr1/Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core

A general-purpose programming language with no keywords (WIP)

This language does not work yet - only lexer and unfinished parser are available.

However, feel free to contribute if you'd like to!

Milestones

  • Lexer
  • Error Formatter
  • Parser (WIP)
  • HIR
  • Type Checker
  • LLVM IR
  • Standard Library
  • Package Manager
  • Optimized
  • Self-Hosted

Parser Progress

  • top-level
  • functions, imports, constants
  • expressions
  • variable declarations
  • function calls
  • if
  • macros
  • mutable variables
  • function arguments
  • [ ] type declarations
  • inline macro declarations
  • arrays
  • idk i forgor

Examples

^ io;

main {
  io.puts("Hello, World!");
}
^ io;

main {
  name = io.prompt("Enter your name: ");
  age = io.prompt("Enter your age: ").as_i32();

  io.puts("Hello, " + name + "!");
}
^ io;

main {
  *i = 0;

  @a {
    io.puts((i++).as_str());
    i < 100 ? a;
  }
}

About

A general-purpose programming language (WIP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published