Skip to content

Releases: ReFreezed/LuaPreprocess

Version 1.21

08 Jul 19:58
Compare
Choose a tag to compare

Changes since 1.20

Library:

  • Added params.strictMacroArguments (which is enabled by default). Macro arguments are validated to be Lua expressions once again, unless strictMacroArguments is disabled.
  • Added the metaprogram code as an argument to params.onBeforeMeta().
  • Added functions: callMacro(), isProcessing().
  • params.onBeforeMeta() is now only called, and *.meta.lua files are only written, if processing is necessary (i.e. not for plain Lua files in most cases).
  • Plain Lua files should process a bit faster.
  • Checking that params.pathMeta isn't the same as the input or output path.
  • Error messages showing lots of code are now shortened.
  • Fixed evaluate() treating empty code as a valid expression.

Command line program:

  • Added option: --nostrictmacroarguments.
  • Added the metaprogram code as an argument to the "beforemeta" message handler.
  • The "beforemeta" message is now only sent, and *.meta.lua files are only written, if processing is necessary (i.e. not for plain Lua files in most cases).

Version 1.20

01 Jul 21:07
Compare
Choose a tag to compare

Changes since 1.19

Library:

  • getOutputSoFar() can now take an output buffer argument.
  • Detecting duplicate names in dual code: !!x, x = ...
  • Fixed evaluate() sometimes raising an error instead of returning it.
  • Fixed issue with files not ending with a newline.
  • Fixed silly internal error when Lua 5.2+ was used.

Command line program:

Repository:

  • Fixed test suite not working in Lua 5.2+. Oops!

Version 1.19

20 Jun 11:47
Compare
Choose a tag to compare

Changes since 1.18

Library:

Version 1.18

19 Mar 23:04
Compare
Choose a tag to compare

Changes since 1.17

Library:

Version 1.17

22 Nov 19:46
Compare
Choose a tag to compare

Changes

Library:

  • Added predefined macros @@ASSERT() and @@LOG().
  • Added params.release and params.logLevel for controlling aspects of the predefined macros. (See processFile().)
  • Added params.macroPrefix and params.macroSuffix (e.g. make @@FOO() call the function MACRO_FOO()).

Command line program:

  • Added support for using stdin/stdout as input/output. (Specify "-" as the file path.)
  • Added --release and --loglevel options.
  • Added --macroprefix and --macrosuffix options.

Version 1.16

16 Nov 20:42
Compare
Choose a tag to compare

Changes

Library:

Version 1.15

01 Aug 16:01
Compare
Choose a tag to compare

Check out the new syntax highlighter tool on the website!

Changes

Library:

Command line program:

Version 1.14

12 Jul 23:17
Compare
Choose a tag to compare

LuaPreprocess has a new website! Documentation has moved here.

Changes

Library:

  • !(), !!() and @insert now work in macros.
  • Macro names can now contain lookups.
  • Updated string serialization, including for newToken("string").
  • Fixed error in output for @line.."".
  • Improved some error messages.

Version 1.13.2

30 May 12:34
Compare
Choose a tag to compare

Changes

Command line program:

  • Fixed internal error when reporting a user error.

Version 1.13.1

16 May 20:42
Compare
Choose a tag to compare

Changes

Library:

Command line program: