Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 980 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 980 Bytes

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