Skip to content
jsadaaPublic

About

The frame programming language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

49 Commits

Folders and files

Repository files navigation

Frame

What is Frame?

Frame is an experimental compiled and typed application language, trying to find its way between rigour and pragmatism.

  • Sum types, declared failures, neither null nor garbage collector;
  • No lifetime management, no memory management in the code, scripts that execute directly.

One writes the logic: values, decisions, rules. The rest is up to execution.

A tour of the language shows its features in short examples.

Status

The language is in an early stage of development.

The documentation of the language, its design and its specification, is not included at this stage: like the project, it is experimental, and will change as the implementation progresses.

Building

cargo build --release
target/release/frame --help

The commands are listed by frame --help. Only frame check works yet, on a script: it reports a file that is not valid UTF-8 or too large.

scripts/check.sh runs the checks that the CI runs on every push: formatting, Clippy, and the tests.

Project structure

Frame is organized as a Cargo workspace with the following crates:

  • frame: the command-line tool
  • frame_source: source files, positions in their text, and loading a file from disk
  • frame_diagnostics: diagnostics as data (the rule code, the title, the locations, and an optional reason, help and fix), and their rendering as text
  • frame_syntax: the lexer, which splits a file's text into tokens
  • frame_driver: the driver, which runs the phases of the compiler on a target and gathers their diagnostics

Use of AI

The implementation is written by hand: I write its logic myself, and I review every change before committing it.

I use AI for research and understanding, for assistance with specification, for planning and breaking the work into tickets, for code reviews, and for learning. On request, it also makes small edits: names, documentation, messages.

License

Frame is licensed under the MIT License. See the LICENSE file for more information.

About

The frame programming language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages