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

PARSE from SwiftX/Src/Interp.f

From: Schauer, Dwight <Dwight.Schauer_at_TriPointGlobal.com>
Date: Tue, 14 Sep 2004 08:19:36 -0500

The target PARSE eats leading delimiters. PARSE is not supposed to do
that, at least from how I read the standard. It is not mentioned in the
comments for the target PARSE that it is non standard.

WORD is supposed to that, but not PARSE. The PARSE on HOST works correctly.

Given the 2 following example strings:
a,,,,,,,,,,DDD,,,,,,,,,,,333,
a,d,d,e,e,f,g,h,h,j,DDD,a,s,d,d,d,e,e,e,e,e,333,

"['] , PARSE" works correctly on HOST for both (same number of fields
are parsed for each string). Zero length strings are returned for the
empty fields, as I would expect.

The target PARSE provided it is different, only 'a', 'DDD', and '333'
are returned.

I'm not using the target resident interpreter, I just need to use PARSE.

-- 
Dwight A. Schauer, Engineer         Mailto:dschauer_at_vcsd.com
VertexRSI, Controls and Structures  http://www.vcsd.com
1915 E. Harrison Road               tel: 903 295 1480 x236
Longview, TX  75604-5438            fax: 903 295 1479
~~~~~~~~~~~~~~~~~~~~~~~~~ 
VERTEXRSI CONFIDENTIAL AND PROPRIETARY
Unless otherwise indicated, all information (including attachments)
contained in this e-mail communication is confidential and proprietary
information exclusively owned by the sender and/or its related or affiliated
companies and shall not, without the prior written consent of the sender, be
used, disclosed, distributed or reproduced, in whole or in part, by anyone
other than the individual or entity to whom this communication is addressed
exclusively for the purpose expressly indicated in this communication. 
This e-mail communication is intended for the use of the individual or
entity to whom it is addressed.  If you are not the intended recipient of
this communication, you are hereby notified that any use, dissemination,
distribution or copying of this communication is strictly prohibited.  If
you have received this communication in error, please notify us at once at
postmaster_at_TriPointGlobal.com so that we may take appropriate action and
destroy any copies, electronic, paper or otherwise that you may have of this
communication.
----------------------------------------------------------------------
swiftx_at_forth.com          The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users.  For product support and bug 
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Tue Sep 14 2004 - 06:17:19 PDT

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:49 PST