TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Forth Lisp Python Continuum

6 pointsby asrpover 7 years ago

1 comment

asrpover 7 years ago
Here&#x27;s some extra information about what running each piece gets you. Assuming flpc.c is already compiled,<p>.&#x2F;flpc with no arguments drops into the FlpcForth REPL. But absolutely nothing is defined in that case, of course. You can try to paste in some source from files in precompiled&#x2F;*.<p>The sample sources in precompiled&#x2F; are all for parsing (some of) its own source and&#x2F;or generating its own source. Pass one of them as argument to .&#x2F;flpc and it will run and drop into the REPL at the end.<p>In the REPL, &quot;ps&quot; is probably the most useful command to get information about current state.<p>There’s no FlpcPython REPL yet (it can parse FlpcPython but doesn’t know what to do with the resulting AST). So right now, to write FlpcPython, I suggest writing to a file, say foo.flpc, and running<p><pre><code> python compiler.py lib&#x2F;stage{0,1{a,c,d},3{a,b}}.flpc foo.flpc &gt; foo.f .&#x2F;flpc foo.f </code></pre> This uses the external Python compiler which will eventually be removed.