To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / 449
448  |  450
Subject: 
Re: Support for pbForth in BricxCC
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Sun, 3 Mar 2002 23:22:30 GMT
Viewed: 
2001 times
  
In lugnet.robotics.rcx.pbforth, Ian Smith writes:
I'm also playing with interfaces to pbforth at the moment. What you're
doing and I'm not is syntax highlighting. I'm not actually sure how well
that works in pbforth, since I'm not sure how the editor knows which words
have been defined already (perhaps previously transferred to the RCX).

My plan is to simply have the editor syntax highlight the built-in words in
various (configurable) ways.  Comments, for instance,  () and \ would be
highlighter in a certain way.  Numbers in another.  Standard Forth words
that are not simple symbols in another way.  Forth words like + * . : ;
(etc) would be highlighted in another way.  RCX-specific words in pbForth
would be highlighted in yet another way.  All of this would be user
configurable.  I may also have a user-definable category of words to syntax
highlight.

I uploaded a JPG to my website that shows my preliminary work:

http://members.aol.com/johnbinder/forth.jpg

environment? reports false for CORE-EXT so I guess not.

FALSE, TRUE, HEX, PICK, and U> are all listed in the CORE-EXT section of the
PDF I looked at and Ralph Hempel lists them among the words he discusses in
his 1999 "Introduction to pbForth" so that's why I wonder.

Thanks,

John Hansen



Message has 1 Reply:
  Re: Support for pbForth in BricxCC
 
(...) I wrote a hack to dump all the words, and here's the result for version 2.0.0. The word list has changed since 1999. I think the list is complete, but no guarantees. ?DUP 2SWAP 2OVER 2DROP 2DUP RSHIFT DLShift LSHIFT MOD / * */ SM/REM /MOD (...) (23 years ago, 4-Mar-02, to lugnet.robotics.rcx.pbforth)

Message is in Reply To:
  Re: Support for pbForth in BricxCC
 
(...) I'm also playing with interfaces to pbforth at the moment. What you're doing and I'm not is syntax highlighting. I'm not actually sure how well that works in pbforth, since I'm not sure how the editor knows which words have been defined (...) (23 years ago, 3-Mar-02, to lugnet.robotics.rcx.pbforth)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR