Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Meaning of any_char & char in Grammar: msg#00000

Subject: Meaning of any_char & char in Grammar
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





<Prev in Thread] Current Thread [Next in Thread>