compiler
compiler copied to clipboard
Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
**Is this a BUG REPORT, FEATURE REQUEST or QUESTION?**: * [x] Bug Report * [ ] Feature Request * [ ] Question **What happened**: Returning an array into another return...
- [x] Add `location` tag `` - [x] Fix `transition` tag - [ ] Escape special characters in documentation - [x] Fix enumerators documentation - [x] Fix constant documentation -...
Tag mismatch
```pawn #include enum E_TEST { E_WTF[32] } main () { new test[E_TEST]; (test[E_WTF])[0] = EOS; // Tag mismatch (_:test[E_WTF])[0] = EOS; // Still tag mismatch (test[E_WTF])[E_TEST:0] = EOS; // No...
### Issue description: Most developers (ab)use `enum`s to create aggregate user-defined types. There are few disadvantages to this method: - it's a hack! enum structs are handled in an unconventional...
### Issue description: I think it could be useful to have an ability for enumerations to inherit elements from other enumerations. Examples: ```Pawn enum Entity { type, // Entity:0 Float:posX,...
### Issue description: Pawn is positioned as ["a robust language with a compiler that performs a maximum of static checks"](https://www.compuphase.com/pawn/pawn.htm#INTRODUCTION), but there are still a lot of areas where these...
Allow this syntax: ``` new field, other, ; ```
**Is this a BUG REPORT, FEATURE REQUEST or QUESTION?**: * [ ] Bug Report * [x] Feature Request * [ ] Question The issue name is kind of self-explanatory, I...
It would be good if using `__emit` as a function parameter maybe bypassed some checks, for example: ```pawn Func(const arr[]) { printf("%s", arr); } main() { new string[] = "hello";...
This issue is for listing down possible improvements for the compiler's codebase. **Current list of suggestions:** - [grow literal queue exponentially (currently linear)](https://github.com/pawn-lang/compiler/issues/296#issuecomment-375947055) - [inconsistent naming of preprocessor tokens](https://github.com/pawn-lang/compiler/issues/296#issuecomment-406837564) -...