"\\S-+%" in gforth.el?

This is a discussion on "\\S-+%" in gforth.el? within the Forth forums in Programming Languages category; Hi- Can anyone tell me what the word whose regexp in gforth.el is "\\S-+ %"? I thought I'd see some (easy) reference to it in the manual, but no such luck... Thanks, Charles...

Go Back   Application Development Forum > Programming Languages > Forth

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-02-2008, 01:09 PM
Charles Turner
Guest
 
Default "\\S-+%" in gforth.el?

Hi-

Can anyone tell me what the word whose regexp in gforth.el is "\\S-+
%"? I thought I'd see some (easy) reference to it in the manual, but
no such luck...

Thanks, Charles


Reply With Quote
  #2  
Old 09-02-2008, 03:46 PM
Anton Ertl
Guest
 
Default Re: "\\S-+%" in gforth.el?

Charles Turner <vze26m98@optonline.net> writes:
>Hi-
>
>Can anyone tell me what the word whose regexp in gforth.el is "\\S-+
>%"? I thought I'd see some (easy) reference to it in the manual, but
>no such luck...


Looking into the Emacs manual, I see:

|`\sC'
| matches any character whose syntax is C. Here C is a character
| that designates a particular syntax class: thus, `w' for word
| constituent, `-' or ` ' for whitespace, `.' for ordinary
| punctuation, etc. *Note Syntax::.
|
|`\SC'
| matches any character whose syntax is not C.

I.e., this regexp matches any word that ends in a %, e.g., CELL%.

- anton

--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2008: http://www.euroforth.org/ef08.html
Reply With Quote
  #3  
Old 09-02-2008, 05:42 PM
Charles Turner
Guest
 
Default Re: "\\S-+%" in gforth.el?

On Sep 2, 3:46*pm, an...@mips.complang.tuwien.ac.at (Anton Ertl)
wrote:

> I.e., this regexp matches any word that ends in a %, e.g., CELL%.


Thanks, Anton- Sorry to bother you with this. After ?dup-0=-if, I was
trying to read it (mostly) as Forth.

Best, Charles


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:32 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.