Skip to content

Compiler and error messages updated#22

Open
imsumire wants to merge 1 commit intomattbatwings:mainfrom
imsumire:main
Open

Compiler and error messages updated#22
imsumire wants to merge 1 commit intomattbatwings:mainfrom
imsumire:main

Conversation

@imsumire
Copy link
Copy Markdown

  • Better compiler structure: Cleaner structure that follows modern Python conventions
  • Better error messages: Rust like error messages using a new error management that displays the file, line index, and line content with a custom error message for each case to improve productivity. Example: Error: Incorrect number of operands for 'add' (expected 4, got 3)
  • Formatting: Some formatting using Black Formatter to make it pretty ✨

@nmb4
Copy link
Copy Markdown

nmb4 commented Dec 30, 2024

Saw you mentioned Rust like error messages and funnily enough i'm currently working on a Rust rewrite of the assembler. Wanna help me with that?

(i'm not an expert for custom assembly languages and i barely know python lol)

@imsumire
Copy link
Copy Markdown
Author

imsumire commented Jan 2, 2025

Saw you mentioned Rust like error messages and funnily enough i'm currently working on a Rust rewrite of the assembler. Wanna help me with that?

(i'm not an expert for custom assembly languages and i barely know python lol)

Hi ! Yeah sure :D

@imsumire imsumire closed this Jan 2, 2025
@imsumire imsumire reopened this Jan 2, 2025
@nmb4
Copy link
Copy Markdown

nmb4 commented Jan 2, 2025

Okay good. I checked your repos and found Floral, so you can probably help with the rewrite of the assembler, given your experience with lexing and parsing.

Or you can write the generator implementation if you prefer that one, have a look at the mc_schem crate if you do.

@imsumire
Copy link
Copy Markdown
Author

imsumire commented Jan 5, 2025

Okay good. I checked your repos and found Floral, so you can probably help with the rewrite of the assembler, given your experience with lexing and parsing.

Or you can write the generator implementation if you prefer that one, have a look at the mc_schem crate if you do.

I think the best thing we can do is an IR with self-optimization like LLVM. Reply me on Discord (@imsumire) ;)

@BjornTheProgrammer
Copy link
Copy Markdown

Can't believe that I didn't see this before starting on my own, lmao.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants