Re: [Amforth] Multi Line Comments

2013-12-29 Thread Enoch
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

[Amforth] Multi Line Comments

2013-12-29 Thread craig and heather
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

Re: [Amforth] Multi Line Comments

2013-12-29 Thread Enoch
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|

[Amforth] Multi Line Comments

2013-12-29 Thread craig and heather
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

[Amforth] Multi Line Comments

2013-12-29 Thread craig and heather
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. -

Re: [Amforth] Multi Line Comments

2013-12-29 Thread Matthias Trute
-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 > >

Re: [Amforth] Multi Line Comments

2013-12-28 Thread Enoch
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

[Amforth] Multi Line Comments

2013-12-28 Thread craig and heather
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 )