compiler icon indicating copy to clipboard operation
compiler copied to clipboard

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS

Results 122 compiler issues
Sort by recently updated
recently updated
newest added

**What this PR does / why we need it**: This PR implements switch expressions, as proposed in #496. Examples of use: ```Pawn GetDiscount(numitems) { assert(numitems > 0); return switch (numitems;...

state: stale

### Issue description: Accessing a packed string in an array that uses an enumerator gives warnings and errors such as: ``` warning 215: expression has no effect error 001: expected...

**What this PR does / why we need it**: Removes keywords `*begin`, `*end` and `*then`, as well as alternative syntaxes for `if`, `switch`, `for`, `while` and `do-while` statements, as explained...

Making PAWN more OO-like has been discussed over and over and over again. While I'd personally be against a fully-fledged rewrite a-la SourcePawn Transitional Syntax,, I think I have a...

area: syntax
state: discuss
type: feature

The compiler stoped with out of error How i can fix.

```pawn #pragma option -r /** * - documentation */ #pragma deprecated - message Func() {} main() { Func(); } ``` Output: ``` warning 234: function is deprecated (symbol "Func") -...

**What this PR does / why we need it**: - **Which issue(s) this PR fixes**: Fixes issue #419 **What kind of pull this is**: * [ ] A Bug Fix...

### Issue description: This is valid code: ```pawn forward Func(); // Muscle-memory made me type "foreach" at first here. forward Func(); ``` This isn't: ```pawn native Func(); native Func(); ```...

**What this PR does / why we need it**: Fixes the compiler crash from an incomplete `do-while` statement without the `while (...);` part (see #678). Function `test()` (file `sc1.c`) was...

### Issue description: If you have a lot of stand-alone: ```pawn /// ``` Eventually the compiler can crash. This is because each time a single extra space is added to...