|
| 1 | +Changelog |
| 2 | +LuaPreprocess |
| 3 | + |
| 4 | +v1.13 (2021-05-14) |
| 5 | +Library: |
| 6 | +- Added macros (in the form of '@insert func()' or '@@func()'). |
| 7 | +- Fixed processedFileInfo.hasPreprocessorCode being false even though @keywords were present. |
| 8 | +- processedFileInfo.hasPreprocessorCode now means anything that isn't pure Lua. |
| 9 | +- Added processedFileInfo.hasMetaprogram . |
| 10 | +- Revised the whole error handling system. (Things should be more stable and nicer now.) |
| 11 | +- Fixed errors getting printed to stdout instead of stderr. |
| 12 | +Command line program: |
| 13 | +- Fixed additional stack overflow error when there's an error in the "fileerror" message handler. |
| 14 | + |
| 15 | + |
| 16 | +v1.12 (2021-01-25) |
| 17 | +Library: |
| 18 | +- Added support for LuaJIT-specific syntax. |
| 19 | +- Output validation can be disabled with params.validate=false . |
| 20 | +- Added aliases for some number formats. |
| 21 | +- Fixed parsing of &, | and ~ operators. |
| 22 | +Command line program: |
| 23 | +- Added --jitsyntax and --novalidate options. |
| 24 | + |
| 25 | +v1.11.2 (2021-01-05) |
| 26 | +Library: |
| 27 | +- Fixed parsing of numbers ending with a point. |
| 28 | +Command line program: |
| 29 | +- Added --backtickstrings and --nonil options (for specifying params.backtickStrings and params.canOutputNil). |
| 30 | + |
| 31 | +v1.11.1 (2020-09-27) |
| 32 | +Library: |
| 33 | +- Huge numbers are now outputted as 1/0 instead of math.huge . |
| 34 | +- Fixed newToken("pp_keyword",...) not accepting all preprocessor keywords. |
| 35 | +- Better error message for unescaped newlines in string literals. |
| 36 | + |
| 37 | +v1.11 (2020-03-23) |
| 38 | +Library: |
| 39 | +- Added params.onInsert() which can be used to change what @insert inserts. |
| 40 | +- Added params.canOutputNil for disallowing !() and outputValue() from outputting nil. |
| 41 | +- Added @file and @line keywords. |
| 42 | +- Outputted strings now have more characters escaped. |
| 43 | +- params.onAfterMeta() can now prepend shebang to the code without causing a code validation error. |
| 44 | +- Fixed sometimes bad output when a preprocessor line ended with a comment. |
| 45 | +- Fixed an internal error. |
| 46 | +Command line program: |
| 47 | +- Added message: "insert". |
| 48 | + |
| 49 | +v1.10 (2019-09-25) |
| 50 | +Library: |
| 51 | +- Added the concept of preprocessor keywords in the form of @keyword. |
| 52 | +- Added @insert. |
| 53 | +- Added processedFileInfo.insertedFiles . |
| 54 | + |
| 55 | +v1.9 (2019-08-02) |
| 56 | +Library: |
| 57 | +- run() can now send arguments to the executed file. |
| 58 | +- Fixed issues when the last line in a file was a preprocessor line. |
| 59 | +Command line program: |
| 60 | +- Added --outputpaths option for specifying an output path for each input path. |
| 61 | +- Added outputPaths argument to "init" message. |
| 62 | +- Added processedFileInfo.outputPath . |
| 63 | +- Added some short-form options. |
| 64 | +- Updated byte units. (Now displaying KiB instead of kB etc.) |
| 65 | + |
| 66 | +v1.8 (2019-05-25) |
| 67 | +Library: |
| 68 | +- Added functions: copyTable(), pack(), getCurrentPathIn(), getCurrentPathOut(). |
| 69 | +- Fixed an issue with whitespace after '!...'. |
| 70 | +- Fixed tokenize() raising an error instead of returning the error message. |
| 71 | +- Updated/fixed various other error handling stuff. |
| 72 | +Command line program: |
| 73 | +- Added --data option. |
| 74 | +- The message handler can now be a table of functions. |
| 75 | +- Added "fileerror" message. |
| 76 | + |
| 77 | +v1.7 (2019-04-28) |
| 78 | +- Hexadecimal fractions and binary exponents are now handled (e.g. 0x12a.8bP+2). |
| 79 | +- Added missing token '::'. |
| 80 | +- Added getNextUsefulToken(). |
| 81 | +- Dual code now only accepts a single assignment statement on the line. |
| 82 | +- Updated detection of malformed numbers. |
| 83 | +- Fixed internal error "error object is a nil value" in Lua 5.3. |
| 84 | + |
| 85 | +v1.6 (2019-03-02) |
| 86 | +- Added backtick strings. |
| 87 | +- Added more functions for handling tokens (removeUselessTokens(), eachToken(), isToken()). |
| 88 | +- Renamed the command line program (main.lua) to preprocess-cl.lua . |
| 89 | + |
| 90 | +v1.5 (2019-02-22) |
| 91 | +- Changed/improved '!!...'. |
| 92 | +- Fixed an internal "trying to call nil" error. |
| 93 | + |
| 94 | +v1.4 (2019-01-16) |
| 95 | +- Added support for Lua 5.2 and 5.3. |
| 96 | +- Fixed some error handling stuff. |
| 97 | + |
| 98 | +v1.3.1 (2019-01-09) |
| 99 | +- Fixed returned value from params.onAfterMeta() not getting used. |
| 100 | + |
| 101 | +v1.3 (2019-01-05) |
| 102 | +- Added processedFileInfo.linesOfCode to processFile()/processString(). |
| 103 | +- --saveinfo option now saves all info that processFile() returns for each file. |
| 104 | +- Added concatTokens(). |
| 105 | + |
| 106 | +v1.2 (2019-01-03) |
| 107 | +- Added pp.processString(). |
| 108 | + |
| 109 | +v1.1.1 (2019-01-02) |
| 110 | +- (No info) |
| 111 | + |
| 112 | +v1.1 (2018-12-22) |
| 113 | +- (No info) |
| 114 | + |
| 115 | +v1.0 (2018-11-02) |
| 116 | +- Initial release. |
0 commit comments