Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Regex query

Newsgroups: perl.perl6.language
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <u...@stemsystems.com>
Mailing-List: contact perl6-language-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-langu...@perl.org
Sender: u...@mail.sysarch.com
To: Simon Cozens <si...@ermine.ox.ac.uk>
Cc: perl6-langu...@perl.org
Subject: Re: Regex query
References: <86lm5xry63.fsf@squash.oucs.ox.ac.uk>	<x7k7lhupny.fsf@mail.sysarch.com>	<86heglrvgg.fsf@squash.oucs.ox.ac.uk>	<x7bs6tuo2p.fsf@mail.sysarch.com>	<86d6r9ruoo.fsf@squash.oucs.ox.ac.uk>
Date: 20 Sep 2002 03:29:01 -0400
In-Reply-To: <86d6r9ruoo.fsf@squash.oucs.ox.ac.uk>
Message-ID: <x77khhunk2.fsf@mail.sysarch.com>
Lines: 29
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-SMTPD: qpsmtpd/0.11-dev, http://develooper.com/code/qpsmtpd/
Approved: n...@nntp.perl.org
From: u...@stemsystems.com (Uri Guttman)

>>>>> "SC" == Simon Cozens <si...@ermine.ox.ac.uk> writes:

  SC> u...@stemsystems.com (Uri Guttman) writes:
  >> actually i just had another thought. you don't need any of the $foo :=
  >> stuff as the match tree will have it all for you. 

  SC> Yes, but it's nice to be able to access the captured things by
  SC> name. Or should I be saying things like

  SC> rule raiddev { <comment>*
  SC>                <sp>* "raiddev" <sp>+ <name> <comm_eol>

are the quotes there literals? they aren't in the file format i think.

  SC>                 (<devicelayout> | <option> | <comment>)+ };

  SC> rule name { /dev/md\d+ }

yeah, that should grab name in the match object as a hash element of the
raiddev level. or maybe it needs grab markers somewhere? i am not sure
it should be (<name>) in the raiddev rule or (/dev/md\d+) in the name
rule. both could work but give different places where the grab ends up.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  -------- http://www.stemsystems.com
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org