On Fri, 13 Jun 2003, Joel VanderWerf wrote:

> As it happens, I was just looking at something like that in a
> racc-generated parser class. The
>
>    'src/yaml.y.rb', 81
>
> are extra information about the file and line from which racc generated
> this bit of code. It's used in error reporting.

i guessed as much.

i didn't realize you could:

  method <<hdoc, arg1, arg2
    string
    stuff
  hdoc

that's cool.

> The '.,.,' is just a creative version of 'END', AFAICT. But it looks
> like your file has an extra '.' at the beginning of the last line. Did
> racc put that there?

no.  vim did somehow.  ;-)


-a
--
  ====================================
  | Ara Howard
  | NOAA Forecast Systems Laboratory
  | Information and Technology Services
  | Data Systems Group
  | R/FST 325 Broadway
  | Boulder, CO 80305-3328
  | Email: ara.t.howard / noaa.gov
  | Phone:  303-497-7238
  | Fax:    303-497-7259
  | ~ > ruby -e 'p(%.\x2d\x29..intern)'
  ====================================