Skip to content

Commit ec1d73e

Browse files
TheSovietPancakessovietpancakes
andauthored
fixed markdown, names, segfault, and warnings (#11)
Co-authored-by: sovietpancakes <[email protected]>
1 parent 80f0a00 commit ec1d73e

File tree

29 files changed

+475
-327
lines changed

29 files changed

+475
-327
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ docs/xml/
2222
*.o
2323
*.s
2424

25+
# Ignore IDE directories
26+
.vscode
27+
2528
# ignore the lsp-client server node modules
2629
node_modules
2730
package-lock.json

.vscode/settings.json

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
11
{
22
"files.associations": {
3-
"type.h": "c",
4-
"array": "c",
5-
"atomic": "c",
6-
"bit": "c",
7-
"charconv": "c",
8-
"cmath": "c",
9-
"compare": "c",
10-
"concepts": "c",
11-
"string": "c",
12-
"unordered_map": "c",
13-
"exception": "c",
14-
"algorithm": "c",
15-
"memory": "c",
16-
"memory_resource": "c",
17-
"optional": "c",
18-
"random": "c",
19-
"string_view": "c",
20-
"type_traits": "c",
21-
"utility": "c",
22-
"functional": "c",
23-
"format": "c",
24-
"iosfwd": "c",
25-
"istream": "c",
26-
"limits": "c",
27-
"new": "c",
28-
"numeric": "c",
29-
"queue": "c",
30-
"ranges": "c",
31-
"span": "c",
32-
"sstream": "c",
33-
"streambuf": "c",
34-
"system_error": "c",
35-
"tuple": "c",
36-
"typeinfo": "c",
37-
"variant": "c",
38-
"vector": "c",
39-
"help.h": "c"
3+
"*.py": "python",
4+
"*.rpy": "renpy",
5+
"type.h": "c",
6+
"array": "c",
7+
"atomic": "c",
8+
"bit": "c",
9+
"charconv": "c",
10+
"cmath": "c",
11+
"compare": "c",
12+
"concepts": "c",
13+
"string": "c",
14+
"unordered_map": "c",
15+
"exception": "c",
16+
"algorithm": "c",
17+
"memory": "c",
18+
"memory_resource": "c",
19+
"optional": "c",
20+
"random": "c",
21+
"string_view": "c",
22+
"type_traits": "c",
23+
"utility": "c",
24+
"functional": "c",
25+
"format": "c",
26+
"iosfwd": "c",
27+
"istream": "c",
28+
"limits": "c",
29+
"new": "c",
30+
"numeric": "c",
31+
"queue": "c",
32+
"ranges": "c",
33+
"span": "c",
34+
"sstream": "c",
35+
"streambuf": "c",
36+
"system_error": "c",
37+
"tuple": "c",
38+
"typeinfo": "c",
39+
"variant": "c",
40+
"vector": "c",
41+
"help.h": "c",
42+
"llvm.h": "c"
4043
}
4144
}

CONTRIBUTING.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Contributing to Lux
1+
# Contributing to Luma
22

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

5-
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.
5+
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.
66

77
## Table of Contents
88

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

2525
### Reporting Issues
2626

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

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

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

61-
2. Clone the Lux repository:
62-
```bash
63-
git clone https://github.com/your-username/lux.git
64-
cd lux
65-
```
61+
2. Clone the Luma repository:
62+
63+
```bash
64+
git clone https://github.com/your-username/luma.git
65+
cd luma
66+
```
6667

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

6970
4. Run to ensure everything is working:
70-
```bash
71-
./lux
72-
```
71+
72+
```bash
73+
./luma
74+
```
7375

7476
## Style Guide
7577

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

9496
---
9597

96-
**Thank you for helping make Lux awesome!**
98+
**Thank you for helping make Luma awesome!**

LPBS/parser.lx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
@use "lexer" as lexer
44
@use "ast" as ast
5+
@use "sys" as sys
56

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

49-
output(peek(&psr, 10).value, "\n");
50+
sys::print(peek(&psr, 10).value);
5051

5152
return cast<*ASTNode>(0);
5253
}

0 commit comments

Comments
 (0)