https://github.com/thrushlang/syntax
The meta syntax, which tries to be understood and compiled by the Thrush compiler.
https://github.com/thrushlang/syntax
compiler-design programming-language-design syntax
Last synced: about 2 months ago
JSON representation
The meta syntax, which tries to be understood and compiled by the Thrush compiler.
- Host: GitHub
- URL: https://github.com/thrushlang/syntax
- Owner: thrushlang
- License: bsd-3-clause
- Created: 2025-02-23T20:32:16.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-23T19:00:04.000Z (11 months ago)
- Last Synced: 2025-04-23T20:19:38.168Z (11 months ago)
- Topics: compiler-design, programming-language-design, syntax
- Homepage: https://github.com/thrushlang
- Size: 195 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thrush Programming Language | Syntax
> [!CAUTION]
> Most of the syntax in this repository is outdated. A new website with detailed documentation is on the way. Please be patient.
> [!WARNING]
> The compiler updates faster than this repository. The syntax may be outdated and non-idiomatic.
This repository contains detailed and general information about the syntax; it is not documentation as such; it is intended to guide you in developing the compiler and the language.
## Content
- ``assembler/`` Information about pure assembler-type functions and assembler values treated as conventional expressions.
- ``attributes/`` Attributes are compile-time code generation modifiers that can modify the behavior of code at runtime.
- ``builtins`` Built-in functions are functions that are part of the compiler and the language; they are like intrinsic to programming languages.
- ``casts/`` Compile-time type transformation.
- ``structure`` Traditional structures in programming languages.
- ``constants/`` Traditional constants.
- ``enum/`` Traditional enum.
- ``loops/`` Traditional loops in programming languages, such as `for`, `while`, and `loop {}` like Rust.
- ``types/`` Native and primitive types of language.
- ``variables/`` Types of variables and their mutation.
- ``deref/`` High-level pointer dereferencing system ``mut T`` and raw pointers ``ptr[T]``, or ``ptr``.
- ``lli/`` Low-level instructions, explicit memory allocation, overwriting of memory values, loading memory, and calculating memory indexes into pointers.