dfe1d3ada8f5adf408edb7a7165d45e3c375793a
Fig Language - A Modern Scripting Language
Fig-Gitea Recommend view on Gitea Endpoint
Fig is a statically-typed, expression-oriented programming language designed for clarity, safety, and modern development practices. With features inspired by Go, Rust, and JavaScript, Fig aims to provide a productive development experience while maintaining strong type safety.
Features
🚀 Core Language Features
- Static typing with type inference - Strong typing with minimal annotations
- Modern control flow - Full
forloop support with proper scoping - First-class functions - Lambda expressions and closures
- Rich data structures - Structs, lists, maps, and tuples
- Memory safety - No null pointer exceptions, automatic memory management
🔧 Technical Highlights
- Three-level scoping for loops - Proper variable isolation in iterations
- Smart semicolon handling - Flexible statement termination with RAII guards
- Comprehensive error handling - Detailed error messages with source locations
- Clean C++ implementation - Modern C++23 with RAII and smart pointers
🔧 Install
Installation
Prerequisites
Xmake version 3.0.0 or higher must be installed on your system.
Build Instructions
- Clone the repository:
git clone https://github.com/PuqiAR/Fig.git
- Navigate to the project directory:
cd Fig
- Build the project:
xmake build Fig
- Run the program:
xmake run Fig [file]
Replace [file] with the path to your input file.
Language Philosophy
Fig is designed around several core principles:
Clarity over cleverness - Code should be readable first
Safety by default - Prevent common errors at compile time
Modern ergonomics - Developer experience matters
Gradual learning - Simple to start, powerful when needed
Language Documents
see ./docs/en_US/...
We're looking for translators to help translate our project and make it accessible to more language communities.
Fig v0.4.3-alpha
Latest
Languages
C++
98.7%
Python
0.7%
Lua
0.2%
Dockerfile
0.2%