craig and heather
writes:
> Enoch
>
> If that is the case then it is impossible to comment out code if you have
> embedded stack diagrams in it. That results in nested comments which are
> illegal.
>
> I guess I'm back to trying to add multi line comments with my own code.
Lodge the complaint ag
Enoch
If that is the case then it is impossible to comment out code if you have
embedded stack diagrams in it. That results in nested comments which are
illegal.
I guess I'm back to trying to add multi line comments with my own code.
Craig Lindley
If you’re one in a million, there are now seven
Hi Craig,
Forth default comments are simple ( ) parentheses, brackets.
These are the ones the shell respects:
|C|1|\ This comment is respected by amforth
|W|2|
|C|3|(
|C|4|
|C|5|1 1 + .
|C|6|
|C|7|This comment is resepected by the shell
|C|8|
|C|9|)
|W| 10|
Enoch,
I just tried out multi line comments for the first time using the shell and
it doesn't seem to work as I would expect.
Here is a little bit of the code I am working on
\ Define some named bit fields
&5 &0 &4 bitfield: READ_BL_LEN
&6 &0 &2 bitfield: C_SIZE_HIGH
&7 &0 &8 bitfield: C_SIZE
Thanks Enoch,
I hadn't realized the shell supported multi line comments and since I only
use the excellent shell, I can accomplish what I want without extra code.
Great,
--
Craig Lindley
If you’re one in a million, there are now seven thousand people exactly
like you.
-
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi Craig,
> I know I will probably get flamed for wanting multiline comments
> but I think they are really handy when writing / debugging code.
I had no need for such comments...
> (* This is a comment *) <-- this single line comment works fine
>
>
Hi Craig,
amforth-shell.py does recognize multi-line comments while AmForth does
not. I consider this a feature. Example:
(*
&46 constant PORTE
*)
0 PORTE c!
If you load the above via the shell the PORTE constant won't be created
and PORTE will be subtituted by a number.
If you load the above
I know I will probably get flamed for wanting multiline comments but I think
they are really handy when writing / debugging code.
I thought it would be a trivial exercise to add multiline comments but I
was wrong.
I tried this code
\ Refill if at end of input line
: ?refill( --- f )