logo       


fundev/Sources/runtime-manager/debugger-nub/gdb-mi gdb-access.dylan, 1.1.2.: msg#00047

Subject: fundev/Sources/runtime-manager/debugger-nub/gdb-mi gdb-access.dylan, 1.1.2.31, 1.1.2.32
Update of /var/lib/cvs/fundev/Sources/runtime-manager/debugger-nub/gdb-mi
In directory cantor:/tmp/cvs-serv5799

Modified Files:
      Tag: fundev-2-1-gdb-nub
        gdb-access.dylan 
Log Message:
optional was easy now...


Index: gdb-access.dylan
===================================================================
RCS file: 
/var/lib/cvs/fundev/Sources/runtime-manager/debugger-nub/gdb-mi/Attic/gdb-access.dylan,v
retrieving revision 1.1.2.31
retrieving revision 1.1.2.32
diff -u -d -r1.1.2.31 -r1.1.2.32
--- gdb-access.dylan    13 Apr 2004 18:18:51 -0000      1.1.2.31
+++ gdb-access.dylan    13 Apr 2004 18:46:09 -0000      1.1.2.32
@@ -1027,7 +1027,7 @@
   end block;
 end begin;
 
-// juxtapose -- run two parsers side-by-side
+// parallel -- run two parsers side-by-side
 // both consuming the same input
 //
 define function parallel(p1 :: <function>, p2 :: <function>, #key connective 
:: <function> = list)
@@ -1064,4 +1064,15 @@
            pair(inp.always,
                 matched),
            more.tail)
+end;
+
+
+// optional -- given a parser, construct
+// a new parser that: always succeeds
+// producing something when input has been
+// consumed, #f otherwise
+//
+define function optional(p :: <function>)
+ => optional :: <function>;
+  parallel(p, epsilon, connective: identity)
 end;



!DSPAM:407c357458461226117634!



_______________________________________________
Gd-chatter mailing list
Gd-chatter@xxxxxxxxxxxxxxxx
http://www.gwydiondylan.org/mailman/listinfo/gd-chatter



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe