* origin/master: (93 commits)
Add support for dictionary creation (#277)
Add do-while statement (#276)
Add foreach loops (#275)
New compiler: array initialization (#274)
Disambiguator: figure out if label is a case statement dispatch selector, or should apply to a statement within the case dispatch group's block. (#273)
New compiler: Add support for case statements (#272)
Change "logical" to "bitwise". (#258)
Fix divide-by-zero errors, and mask FormatError if it were thrown in a destructor. (#271)
Add break and continue statements. (#270)
New compiler: assignment to local and global variables. (#269)
Add support for while loops (#268)
Optimize if statements, and emit module functions in legacy order (#267)
Optimizations: binary operators (#266)
Add binary operators (#265)
Add support for const declarations (#264)
Handle default parameter values, pass-by-name, and return statements in functions. (#263)
Add limited support for user functions (#262)
New compiler: add return and exit statements (#261)
Add support for if-then-else statements (#259)
OG compiler: set module to Mod_Basic when a token is an identifier (#257)
...
* Added explicit path to the lib/ folder.
* Added use_zlib() function to the cmake files. Changed the remaining cmake files to use POL_EXT_LIB_DIR.
* Removed relative path to zlib. It seems we were always using our zlib header (even when linking to the system zlib on linux!).
* use c++14 on linux, visual studio still undefined which means highest
available
* removed make_unique.h due to c++14 no more needed
* stumbled across pre c++14 code
* Removed use of boost::make_unique<> (updated to C++14)
Co-authored-by: turleypol <turley@polserver.com>
- polcore().last_character_serial returns last character serial assigned by core
- polcore().last_item_serial returns last item serial assigned by core.
* origin/master: (84 commits)
store skillid in the attributes if available
added docs for checkskill change
use the correct id as skillid
CheckSkill() accepts now also attribute name instead of skillid
Move StoredToken to its own cpp/h
Items can now be created with an assigned quality from an itemdescriptor (#161)
*** OG Compiler: decouple web script preprocessing from FileContents
fix optimizer bug: can stop optimizing prematurely if pre- or post-decrement operators are present
Fix a bug in the legacy compiler .ecl output
Move compiler to Legacy namespace
Allow discord notification to fail and still have a successful build. It will otherwise always fail on forks, because it needs a github secret.
Ensure textentry_uoemod is not overwritten
fixed potential out of bound read
escript_grammar.cmake from Turley
generated lib/EscriptGrammar from grammar
EscriptGrammar from escript-antlr repo commit ef133e3a3a3184936e93493c863b7b995cdf4737 (#162)
Incorporate ANTLR into the cmake build.
Fix luck mod being assigned to luck from itemdesc files Fixed swing speed increase being printed twice when saving items. Fixed spelling mistake in docs.
Style fix
- Fix up docs. - Change modifier calculation to correctly use double. - Change rounding calculation as per Turley's suggestion.
...
* Changed: pol.cfg settings HideWarningGump and HideWarningItem to ShowWarningGump and ShowWarningItem. This positive logic is consistent with all other console output settings.
Default is zero (0). The output will not be displayed unless set to one (1).
* Set default behaviour for ShowWarningGump and ShowWarningItem to display warnings (1).
* Added ShowWarningGump and ShowWarningItem settings to pol.cfg.example.
logs name and memoryusage of variables for given script into
log/scriptmemory.log.
Globals, locals and all current call stacks.
scriptname has to be the relative path from root with ecl ending.
Precondition is an existing .dbg file for the given script, this will
be created by compiling the script with -x