papyrus-compiler icon indicating copy to clipboard operation
papyrus-compiler copied to clipboard

Open-source compiler for the Papyrus scripting language of Bethesda games.

Results 22 papyrus-compiler issues
Sort by recently updated
recently updated
newest added

Currently the only way to initialize an array at size n with compile time values is to do ```papyrus int[] a = new int[2] a[0] = 5 a[1] = 10...

enhancement
lexer
parser
language-addition

I see that you have manually included some .psc source files in the extern/ folder. I would just like to point out that I have made a [github repository](https://github.com/MrOctopus/nl_online) that...

From @cadpnq - When two labels are next to one another all branches pointing at the first can be rewritten to point to the second. - When a label is...

enhancement
optimizer

`RegisterForUpdate` is a function that in almost all cases can be replaced by the safer `RegisterForSingleUpdate`. A nice feature would be a warning for anyone who uses this function, so...

analyzer
severity-warning
compiler-message

eg: ```papyrus If true EndIf ``` instead of ```papyrus If (true) EndIf ```

parser
language-addition
severity-warning
compiler-message

Since function calls can be very costly in Papyrus, it would be helpful if an inline flag for function definitions could be added to the compiler. This feature would speed...

enhancement
optimizer
language-addition

Pre-processor statements (like the c++ style #ifdef) for code blocks would be useful. Would allow for something like: ``` #ifdef debug my_logging_functions_here() #endif ```

enhancement
lexer
parser
language-addition

When you are missing a source file when compiling, the compiler tells you the name of the missing class, not the name of the missing file. However, the class and...

enhancement
severity-error
compiler-message

See https://compileroptimizations.com/category/expression_simplification.htm

enhancement
analyzer
optimizer

See https://compileroptimizations.com/category/constant_propagation.htm

enhancement
optimizer