Papyrus Compiler (open source)
An open-source compiler for Bethesda's Papyrus scripting language (Skyrim SE/AE), implemented in V. Focused on faster compilation, clearer error messages, and PEX file analysis.
Credited author
v2026.03.15
20 Nov 2026
V 0.0.4
New Features
- Added
versioncommand — runpapyrus versionto display the current compiler version. - String literals are now accepted as default values for typed properties and function parameters and are automatically converted to the declared type.
int Property MyProp = "123" Auto ; now valid — "123" is converted to 123Int Function MyFunc(int n1, int n2 = "12") ; "12" is converted to 12 EndFunction
Improvements
- The compiler now reports an error when a script referenced in
extendsor a variable type cannot be found, instead of failing silently. - The compiler now reports an error when two scripts with the same name are found in different source folders.
- Added a check that the script name declared in
Scriptnamematches the source file name. - Default parameter values are now validated to be type-compatible with the declared parameter type.
- Improved error messages to be clearer and more consistent (e.g., "undefined identifier" instead of "variable declaration not found").
- Internal compiler errors now display a structured diagnostic message with version info, a stack trace, and instructions for reporting the issue, instead of crashing with an unhelpful message.
Fixes
- Fixed incorrect handling of
Noneas a default value in properties and function parameters. - Fixed a compiler crash when
Nonewas used in arithmetic or logical expressions (e.g.,None + 1). A proper erro
v2026.03.15
20 Nov 2026
First release.




















































