Note
A programming language implementation built with .NET and C#. Later, when the basic compiler features and standard library are ready, it will be rewritten in Tri.
TODO
Tri/- Main executable applicationTrilang/- Core language implementation libraryLexing/- Lexical analysis componentsParsing/- Parser implementationSemantics/- Semantic analysisSymbols/- Symbol table managementCompilation/- Compilation pipelineIntermediateRepresentation/- IR generation and manipulationLower/- Lowering transformationsOutputFormats/- Code generation backendsMetadata/- Metadata handling
Tri.Tests/- Unit tests using NUnit frameworkexample.tri- Example Tri language source file
- .NET 9.0 or later
To build the project:
dotnet buildTo run the Tri compiler:
dotnet run --project TriTo help with command-line options:
dotnet run --project Tri -- --helpTo run tests:
dotnet testSee for a sample Tri language program demonstrating the syntax and features: example.tri.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
See the LICENSE file for details.
See the CODEOWNERS file for maintainer information.