Page 8 of 8

Re: LuaPreprocess - straightforward preprocessor with simple syntax

Posted: Mon Nov 22, 2021 8:59 pm
by ReFreezed
yetneverdone wrote: Sun Nov 21, 2021 3:19 am I forgot that youre developing Gloa. Im really excited for that language. It might be my defacto language for love.
Is there anything you need help with that? perhaps with testing?
I missed this part of the reply. I'm glad you're excited about Gloa. :)

The development on it is really slow since I'm working on a bunch of other projects at the same time, and I don't need help with anything in particular that can involve other people. It would be nice if people played around with the language a bit and came back with some general thoughts about it, but since there's not really any documentation for anything yet it's probably too much to ask for at this point, not to mention many things may still change before I'd consider it ready to be used by people other than myself. But, thanks for offering help.

Re: LuaPreprocess - straightforward preprocessor with simple syntax

Posted: Sat Mar 19, 2022 11:21 pm
by ReFreezed
Update 1.18

Changes since 1.17:

Library:

Re: LuaPreprocess - straightforward preprocessor with simple syntax

Posted: Sun Mar 20, 2022 1:52 am
by yetneverdone
Awesome! Now i need to think if there are parts in my code where i can utilize that `loadResource`

Re: LuaPreprocess - straightforward preprocessor with simple syntax

Posted: Mon Jun 20, 2022 12:02 pm
by ReFreezed
Update 1.19

Changes since 1.18:

Library:

Re: LuaPreprocess - straightforward preprocessor with simple syntax

Posted: Fri Jul 01, 2022 9:24 pm
by ReFreezed
Update 1.20

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:

Re: LuaPreprocess - straightforward preprocessor with simple syntax

Posted: Fri Jul 08, 2022 8:47 pm
by ReFreezed
Update 1.21

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).

Re: LuaPreprocess - straightforward preprocessor with simple syntax

Posted: Mon Nov 07, 2022 5:51 am
by yetneverdone
Hi, just gonna share here the now public repo of my project which uses luapreprocess a lot for other devs. https://github.com/flamendless/GoingHomeRevisited

I will be moving to a new repo to rework from the ground up the game.

Im still not sure whether to use luapreprocess again or go back to plain lua. One thing that makes me not use lpp anymore is the lack of proper syntax highlighting (using treesitter) for my neovim setup (i know it's not a good reason, but my OCD just hits :/ ).

I wish i have the time to extend the lua treesitter for this one :/