Sam H
Sam H

Reputation: 976

Quick question about Lua stand-alone interpreter

I saw this function in the lua.c file called dotty(). I have a feeling that it takes line-by-line input, is this correct?

Upvotes: 0

Views: 250

Answers (1)

Stéphan Kochen
Stéphan Kochen

Reputation: 19943

That's correct, it's basically the REPL.

That function technically works on a chunk-by-chunk basis. The loadline function does the actual line-by-line input, until it gets a complete chunk to execute.

Upvotes: 1

Related Questions