Comments (6)
from zforth.
Hi Michael, Yeah, that's how it goes for mosth forth-lovers: you fondly remember tinkering with it in the past, and for some reason it stays with you, right? Even in this age, there still is something magical about Forth it seems :)
Yep. That sums it up well.
You do need to provide some glue for terminal input and output from your own code, ...
The RP2040 C SDK has <stdio.h> so if I'm reading the zForth source correctly, I need putchar()
to support EMIT
and gets()
to read a line from stdin. Is that right?
from zforth.
from zforth.
from zforth.
Well, not for zforth itself - all input to the interpreter goes into
zf_eval(), and all output is sent to you through the syscall interface.
Sorry for the sloppy communication, I was trying to ask if I was correctly understanding that the syscall routines need, at the minimum, a pair of host (in this case C library) functions that can send 1 character (e.g. putchar()
) and read 1 line (e.g. gets()
) from stdio.
from zforth.
closing because of no activity, feel free to reopen if need!
from zforth.
Related Issues (16)
- crash under Asan HOT 4
- strings.zf missing HOT 1
- How to set a variable HOT 1
- Clarify the level of ANS Forth compliance HOT 1
- todo's and notes to self
- include triggers ZF_ABORT_BUSY HOT 8
- Does not build on Void Linux without libsanitizer-devel HOT 1
- Missing some headers and C++ compatibility? HOT 4
- Loop iterator "j" HOT 9
- I want to embed zForth into Tic-80 HOT 3
- Floating Point segmentation fault 2017-07-23 HOT 3
- Does zforth support more memory than 16Kb HOT 5
- d
- see for word definition HOT 1
- GPL HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zforth.