lua-users home
lua-l archive

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


> I could then write code in another file that would patch the two 
> together something like this:
>  function sillyCode()
> include("functions.lua)
> silly1()
> local y =2
> include("locals.lua")
> print(x + y)
> end

You could write a simple reader function that reads input line by line and
understands includes but it will be fooled by long strings and long comments.