Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CfxLua #338

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Support CfxLua #338

wants to merge 3 commits into from

Conversation

mdxwzl
Copy link

@mdxwzl mdxwzl commented Feb 9, 2025

  • Implemented CFX Lua as a feature flag - cfxlua
    • Compound Operators: +=, -=, *=, /=, <<=, >>=, &=, |=, and ^=
    • Safe Navigation e.g. t?.x?.y == nil
    • In Unpacking e.g. local a, b, c = t is equivalent to local a, b, c = t.a, t.b, t.c
    • Set Constructors e.g. t = { .x, .y } is equivalent to t = { x = true, y = true }
    • C-Style Comments (single & multiline) e.g. /* comment */
    • Compile Time Jenkins' Hashes e.g. `Hello, World!` -> 1395890823

@mdxwzl
Copy link
Author

mdxwzl commented Feb 9, 2025

Some of the tests dont pass in the workflow, I'll look into it tmrw

@mdxwzl mdxwzl marked this pull request as ready for review February 9, 2025 19:43
@mdxwzl mdxwzl force-pushed the main branch 2 times, most recently from b1ac9c0 to 942e98d Compare February 10, 2025 07:28
@mdxwzl
Copy link
Author

mdxwzl commented Feb 10, 2025

Would be glad if someone can look over it. I tested the workflows locally with Docker, and it keeps changing up the bytes, line & character values in the AST. Somehow, they are not the same in the workflow environment as on my Windows machine.

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.

1 participant