Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make exe behave like a lua interpreter when called as
pandoc-lua
.
- Loading branch information
Showing
6 changed files
with
201 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
title: pandoc-lua | ||
section: 1 | ||
date: September 22, 2022 | ||
--- | ||
|
||
# SYNOPSIS | ||
|
||
`pandoc-lua` [*options*] [*script* [*args*]] | ||
|
||
# DESCRIPTION | ||
|
||
`pandoc-lua` is a standalone Lua interpreter with behavior similar | ||
to that of the standard `lua` executable, but exposes all of | ||
pandoc's Lua libraries. All `pandoc.*` packages, as well as the | ||
packages `re` and `lpeg`, are available via global variables. | ||
Furthermore, the globals `PANDOC_VERSION`, `PANDOC_STATE`, and | ||
`PANDOC_API_VERSION` are set at startup. | ||
|
||
If no script argument is given, then the script is assumed to be | ||
passed in via *stdin*. Interactive mode is not supported at this | ||
time. | ||
|
||
# OPTIONS | ||
|
||
`-e stat` | ||
: Execute statement `stat`. | ||
|
||
`-l mod` | ||
: If mod has the pattern `g=m`, then require library `m` into | ||
global `g`; otherwise require library `mod` into global | ||
`mod`. | ||
|
||
`-v` | ||
: Show version information. | ||
|
||
`-i`, `-E`, `-W` | ||
: Not supported yet; print a warning to that effect. | ||
|
||
# AUTHORS | ||
|
||
Copyright 2022 John MacFarlane (jgm@berkeley.edu) and | ||
contributors. Released under the [GPL], version 2 or later. This | ||
software carries no warranty of any kind. (See COPYRIGHT for full | ||
copyright and warranty notices.) | ||
|
||
Lua: Copyright 1994-2022 Lua.org, PUC-Rio. | ||
|
||
[GPL]: https://www.gnu.org/copyleft/gpl.html "GNU General Public License" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters