Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#13 JScriptLog Converter (external parser)

open
nobody
None
5
2012-09-16
2005-10-02
Anonymous
No

Thanks to Jeff for this little tool, writeJSLog/1, which writes a
Prolog term out as the Javascript code for JScriptLog. This provides an
external parser of sort for converting Prolog source into the internal
representation of JScriptLog.

The only trick is that, to write out variable names, you need
to convert Var to newVariable('Var'). For an example, see the
test/0 predicate at the end that converts queens/3 from "UI.js".

This code runs in the JLog applet, or other Prolog.

Discussion

  • External Parser for JScriptLog

     
    Attachments