-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"cell+" and "[include]" words, "hello world" example #1
base: master
Are you sure you want to change the base?
Conversation
Thanks! Some remarks:
|
Hello Piotr, all valid points. As for 1: I've missed this, good error messages are important. I will need to think about a good solution and will post my idea here before implementing to get your feedback. As for 2: Yes, there is room for optimization. The current implementation was driven by the publishing deadline for the magazine. As for 3: Sure, I'll look into it. As for 4: OK As for 5: I'm pretty much a weekend coder these days, I will need some time to find free time. Thanks for your comments. Carsten |
I've worked on 5, hello.foc and lib/core.foc now have all comments in english. is using ".foc" as the extension for FOCO65 source code OK, or should I use ".f" or ".fth" or ".4th" or ".fs" (more traditional filename extensions for Forth source)? |
Hello Piotr, here is my initial idea on how to support line numbers in error messages with the "include" feature
Does this sound reasonable? Best regards Carsten |
It does seem reasonable - please give it a try. As for the source file extensions - ".forth", ".fth" and ".4th" are fine. Some further improvements in comments: s/start address of program/program start address/, s/the printable text/printable text/, s/Hauptprogramm/main program/ (?), s/set the RUNVEC to start program/set RUNVEC to program start/, s/naechstes Forth-Wort/next Forth word/.
|
Hi Piotr,
thanks for making FOCO65 available.
I've written an article about FOCO65 for the upcoming ABBUC Magazine. After writing the article, I wanted to improve a little on FOCO65. I've changed "cell" (which was the same function as "cells" == 2 *) to "cell+" which is implemented as "2 +". This is in compliance with the latest Forth 200x standards.
I've also implemented a simple "include" word that can be used to include other source files. It can be used to split FOCO65 source into multiple files, and to create a "standard library" of common or standard Forth words.
The "hello world" example still has German comments, I will change that in the next days.
Greetings
Carsten