Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ docs/xml/
*.o
*.s

# Ignore IDE directories
.vscode

# ignore the lsp-client server node modules
node_modules
package-lock.json
Expand Down
77 changes: 40 additions & 37 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
{
"files.associations": {
"type.h": "c",
"array": "c",
"atomic": "c",
"bit": "c",
"charconv": "c",
"cmath": "c",
"compare": "c",
"concepts": "c",
"string": "c",
"unordered_map": "c",
"exception": "c",
"algorithm": "c",
"memory": "c",
"memory_resource": "c",
"optional": "c",
"random": "c",
"string_view": "c",
"type_traits": "c",
"utility": "c",
"functional": "c",
"format": "c",
"iosfwd": "c",
"istream": "c",
"limits": "c",
"new": "c",
"numeric": "c",
"queue": "c",
"ranges": "c",
"span": "c",
"sstream": "c",
"streambuf": "c",
"system_error": "c",
"tuple": "c",
"typeinfo": "c",
"variant": "c",
"vector": "c",
"help.h": "c"
"*.py": "python",
"*.rpy": "renpy",
"type.h": "c",
"array": "c",
"atomic": "c",
"bit": "c",
"charconv": "c",
"cmath": "c",
"compare": "c",
"concepts": "c",
"string": "c",
"unordered_map": "c",
"exception": "c",
"algorithm": "c",
"memory": "c",
"memory_resource": "c",
"optional": "c",
"random": "c",
"string_view": "c",
"type_traits": "c",
"utility": "c",
"functional": "c",
"format": "c",
"iosfwd": "c",
"istream": "c",
"limits": "c",
"new": "c",
"numeric": "c",
"queue": "c",
"ranges": "c",
"span": "c",
"sstream": "c",
"streambuf": "c",
"system_error": "c",
"tuple": "c",
"typeinfo": "c",
"variant": "c",
"vector": "c",
"help.h": "c",
"llvm.h": "c"
}
}
28 changes: 15 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Contributing to Lux
# Contributing to Luma

Thank you for your interest in contributing to Lux, a simple yet powerful systems programming language!
Thank you for your interest in contributing to Luma, a simple yet powerful systems programming language!

This document outlines the guidelines and best practices to help you contribute effectively. Whether you're reporting bugs, suggesting features, or submitting code, we appreciate your help making Lux better for everyone.
This document outlines the guidelines and best practices to help you contribute effectively. Whether you're reporting bugs, suggesting features, or submitting code, we appreciate your help making Luma better for everyone.

## Table of Contents

Expand All @@ -24,7 +24,7 @@ By participating in this project, you agree to abide by the Contributor Covenant

### Reporting Issues

If you find a bug or unexpected behavior in Lux, please open an issue on the GitHub repository with:
If you find a bug or unexpected behavior in Luma, please open an issue on the GitHub repository with:

- A clear and descriptive title
- Steps to reproduce the problem
Expand Down Expand Up @@ -58,18 +58,20 @@ To set up a local development environment:

1. Ensure you have the required dependencies installed (e.g., cmake, ninja, gcc or your preferred compiler).

2. Clone the Lux repository:
```bash
git clone https://github.com/your-username/lux.git
cd lux
```
2. Clone the Luma repository:

```bash
git clone https://github.com/your-username/luma.git
cd luma
```

3. Build the project following instructions in the README (or specific build scripts).

4. Run to ensure everything is working:
```bash
./lux
```

```bash
./luma
```

## Style Guide

Expand All @@ -93,4 +95,4 @@ By contributing, you agree that your contributions will be licensed under the MI

---

**Thank you for helping make Lux awesome!**
**Thank you for helping make Luma awesome!**
3 changes: 2 additions & 1 deletion LPBS/parser.lx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

@use "lexer" as lexer
@use "ast" as ast
@use "sys" as sys

const BindingPower -> enum {
BP_NONE, /**< No binding power */
Expand Down Expand Up @@ -46,7 +47,7 @@ pub const parse -> fn (tks: *Token, path: *char) *ASTNode {
let psr: Parser;
init_parser(&psr, tks, path);

output(peek(&psr, 10).value, "\n");
sys::print(peek(&psr, 10).value);

return cast<*ASTNode>(0);
}
Loading