embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

0 [IF] \ [IF]

From: Bulgrien, Dennis <Dennis.Bulgrien_at_TripointGlobal.com>
Date: Fri, 14 Dec 2001 18:13:33 -0600

I was expecting "1 2 ok".

TEMP.F
------
1 .
0 [IF] \ [IF] contains a message for you
Merry Christmas
[THEN]
2 .

SwiftX
------
INCLUDE temp.f 1 ok

It can be fixed by mangling the commented [IF].

TEMP.F
------
1 .
0 [IF] \ [I F] contains a message for you
Merry Christmas
[THEN]
2 .

SwiftX
------
INCLUDE temp.f 1 2 ok

The first [IF] thinks the first [THEN] belongs to the commented [IF].

TEMP.F
------
1 .
0 [IF] \ [IF] contains a message for you
Merry Christmas
[THEN]
2 .
[THEN]
3 .

SwiftX
------
INCLUDE temp.f 1 3 ok

Since [IF] has to look for nested [IF]-[THEN]'s, could it warn about not
finding it's [THEN]? It would save some debugging. Some suggestions:
        [IF] unterminated in temp.f ok
        [THEN] expected in temp.f ok
        Unexpected end of file in temp.f ok
And conversely, the following suggestions:
        [ELSE] unexpected in temp.f ok
        [THEN] unexpected in temp.f ok

TEMP.F
------
[THEN]

SwiftX
------
INCLUDE temp.f ok
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
Received on Fri Dec 14 2001 - 16:12:48 PST

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:23 PST