Author: particle Date: 2009-01-04 03:26:39 +0100 (Sun, 04 Jan 2009) New Revision: 24752
Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] get rid of illustration grammar, it's in the revision history if i need it later. Modified: docs/Perl6/Spec/S19-commandline.pod =================================================================== --- docs/Perl6/Spec/S19-commandline.pod 2009-01-03 23:27:16 UTC (rev 24751) +++ docs/Perl6/Spec/S19-commandline.pod 2009-01-04 02:26:39 UTC (rev 24752) @@ -14,8 +14,8 @@ Maintainer: Jerry Gay <jerry....@rakudoconsulting.com> Date: 12 Dec 2008 - Last Modified: 2 Jan 2009 - Version: 8 + Last Modified: 3 Jan 2009 + Version: 9 This is a draft document. This document describes the command line interface. It has changed extensively from previous versions of Perl in order to increase @@ -205,50 +205,6 @@ =back -These rules have been quantified in the following grammar, used solely for -illustration purposes (this is *not* how options will be parsed by any shell). - -{{TODO update to current, move to non-published helper doc}} - - grammar CommandLineArguments; - - rule TOP { - <argument>* - '--'? - $<rest>=[.*]? - [ $ || <panic: 'Syntax error'> ] - } - - rule argument { [ <option> | <passthru> | <value> ] {*} } - - token option { - [ - [ - $<sym>=[ '--' | '-' | ':' ] - $<neg>=[ '/' ]? - <name> - ] - [ '=' <value> [ ',' <value> ]* ]? - ] - } - - regex passthru { - '++' <indicator> <.ws> - $<data>=[.*?] - [ '--' $<indicator> || $ ] - } - - token indicator { <name> [ '=' <target=name> ]? } - - token name { <.ident> [ '-' <.ident> ]* } - - token value { - | (\w+) - | \' (<-[\']>*) \' - | \" (<-[\"]>*) \" - } - - =head1 Option Categories Perl's command line options fall into three categories: