Skip to content

bartoszluka/seal

Repository files navigation

Seal Language

Seal is a simple, C-like programming language made for fun.

Name

The name is a pun that comes from having a C-like syntax.

C-like → sea like → seal

Design

This is a work in progress.

The language is inspired by Rust and Haskell.

Expression based

if "statements" can be expressions and the returned value can be assigned to a variable. Example:

let number = if (condition) 69 else 420;

The same can be said about while keyword.

let result = while (i < 10) {
    i = i * 10;
    i
}

Everything can be scoped. That means the scope itself is an expression and can be used everywhere an expression is expected.

Progress

list of features:

  • parser
  • interpreter
  • good error messages
  • compiler
  • formatter
  • language server LSP
  • tree-sitter grammar/syntax highlighting

Releases

No releases published

Languages