hash table for a lexer

From: Joel Reymont <joelr1_at_gmail.com>
Date: Fri, 20 Feb 2009 15:07:56 +0000

I need to write a lexer that scans for language with a large number of
predefined keywords. Whenever I find a keyword, I would like to match
it against the keywords table first.

In my code written in other languages I do a hash table lookup. Is
there a hash table in SwiftForth?

        Thanks, Joel

---
http://tinyco.de
Mac Trading Apps
----------------------------------------------------------------------
sftalk_at_forth.com      The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users.  For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Fri Feb 20 2009 - 07:08:24 PST

Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.