lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


That's lexing (llex.{c,h}). If you want to embark on a language design
and implementation journey, I recommend grabbing a good book, such as
Crafting Interpreters (https://craftinginterpreters.com/). It will also
help you understand the structure of the Lua sources and the feasibility
of (your) proposed syntax.

On 02/10/2023 11:24, Claudio Grondi wrote:

Lua provides support for multi-line string literals invoked by `[[`
and finalized with `]]` and for multi-line comments invoked with
`--[[`, `--[=[`, ...

I have searched Lua C-code for `--[[`, `--[=` and `[[` but failed to
find this patterns which I would like to replace for custom purposes
with another ones.

Any hints towards where to look and what to change?