Search results
Results from the WOW.Com Content Network
This can be any Lua value. This parameter is optional, and defaults to nil. options: A table of options. This parameter is optional. The following options can be specified in the options table: pretty: If true, output the string in "pretty" format (as in pretty-printing). This will add new lines and indentation between table items.
With ^ right after [they indicate "anything but": [^abc] = not a, b, or c. Inside brackets and when not the first character, a minus -indicates a range: [a-z] matches one single character from a, b, c, …, z. Period . matches any character. Percent % indicates a large set (class) of possible character matches when it is followed by a letter.
Marshalling data between C and Lua functions is also done using the stack. To call a Lua function, arguments are pushed onto the stack, and then the lua_call is used to call the actual function. When writing a C function to be directly called from Lua, the arguments are read from the stack. Here is an example of calling a Lua function from C:
This means the single quote marks in a statement such as: Jack said, “Jill said ‘fish’ last Tuesday.” quoteUnquoted Wrap the string in quotes; quotes can be chosen for a specific language. Will not quote an empty string, and will not quote if there is a quote at the start or end of the (trimmed) string. 1
While Lua allows the true and false boolean values, wikicode templates can only express boolean values through strings such as "yes", "no", etc. This module processes these kinds of strings and turns them into boolean input for Lua to process. It also returns nil values as nil, to allow for distinctions between nil and false. The module also ...
While this page doesn't currently have anything to say about semicolons, in Lua code they're generally avoided except when necessary (i.e. a statement ending with a function call is followed by a statement starting with a parenthesized expression) or when multiple statements are on a line.
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
This module provides unit tests for other Lua modules. To test a module, you must create a separate test module, usually located at Module:Module name/testcases.The module is tested with the ScribuntoUnit module, which verifies that the operations defined in the test module produce the expected results.