Re: Can I use interactive mode in Lua?

luigi scarso <[email protected]> Mon, 16 Oct 2017 22:18:17 +0200
Newsgroups gmane.comp.tex.metapost
Message-ID <CAG5iGsDdXuZGf3+C6iYoqMjbW41xAc9fh=75M=KBMsRtJB=J8Q@mail.gmail.com>
On Mon, Oct 16, 2017 at 10:10 PM, Rui Zhang <[email protected]> wrote:
> Thank you for the solution.  But this does not work if I have
> a statement broken into several lines.
> For example, this should compile with standalone mpost:
>
>     draw (0,0)
>     for i = 1 upto 10:
>       -- (i, 0)
>     endfor;
>
> If somehow I can determine where the end of a statement is,
> the problem might be solved.  But it sounds like a bad idea
> to reinvent a parser for this purpose.
> --
> http://tug.org/metapost/

hm,
have you seen mplibapi.pdf at
https://www.tug.org/svn/texlive/tags/texlive-2017.1/Master/texmf-dist/doc/metapost/base

-- 
luigi
--
http://tug.org/metapost/