Meaning of any_char & char in Grammar

[email protected]
Newsgroups gmane.comp.lang.ruby.documentation
Message-ID <[email protected]>
Hi,

I am currently working on a parser and lexer for Ruby and I had a couple
questions.

On the grammar page:  http://www.ruby-doc.org/docs/Manual/man-1.4/yacc.html

Some things like GLOBAL are defined using the term any_char.  What exactly
is the meaning of this term?

Also, the rule

REGEXP	: `/' any_char* `/'[`i'|`o'|`p']
	| `%'`r' char any_char* char

uses 'char any_char* char'.  What is the meaning of char in this context?


Thanks!
Justin Sherrill
North Carolina State University
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.