WingedSeal / jmc

A compiler for JMC (JavaScript-like Minecraft Function), a mcfunction extension language for making Minecraft Datapack
https://jmc.wingedseal.com
MIT License
64 stars 10 forks source link

[FUNCTION_REQUEST] Compile-time logging #106

Open Nico314159 opened 4 months ago

Nico314159 commented 4 months ago

JMC.log(message: string)

Prints the given string into the compiler console. Useful for todo / fixme reminders.

Parameters

Compliation [sic] Result: N/A

Example:

JMC.log('todo: make this work');

Result:

Prints out todo: make this work every time it compiles.

Extra Description:

[Describe logic and extra description you would like to inform]

Maybe it could also say which function called it as an extra hint to the developer (because "finish this soon" might not be a very descriptive log message if you don't know what it means by "this")

Nico314159 commented 4 months ago

The function could also be called something like JMC.warning