[前][次][番号順一覧][スレッド一覧]

ruby-changes:44607

From: a_matsuda <ko1@a...>
Date: Wed, 9 Nov 2016 04:56:03 +0900 (JST)
Subject: [ruby-changes:44607] a_matsuda:r56680 (trunk): Fix grammar errors

a_matsuda	2016-11-09 04:55:59 +0900 (Wed, 09 Nov 2016)

  New Revision: 56680

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56680

  Log:
    Fix grammar errors
    
    Patch by: Chris Tweedie <cltweedie@g...> (@cltweedie)
    Signed-off-by: Akira Matsuda <ronnie@d...>
    
    closes #1074
    
    [ci skip]

  Modified files:
    trunk/lib/racc/rdoc/grammar.en.rdoc
Index: lib/racc/rdoc/grammar.en.rdoc
===================================================================
--- lib/racc/rdoc/grammar.en.rdoc	(revision 56679)
+++ lib/racc/rdoc/grammar.en.rdoc	(revision 56680)
@@ -4,12 +4,12 @@ https://github.com/ruby/ruby/blob/trunk/lib/racc/rdoc/grammar.en.rdoc#L4
 
 == Class Block and User Code Block
 
-There are two blocks on toplevel. One is 'class' block, another is 'user code'
-block. 'user code' block MUST be placed after 'class' block.
+There are two blocks on the toplevel. One is the 'class' block, the other is the 'user code'
+block. The 'user code' block MUST be placed after the 'class' block.
 
 == Comments
 
-You can insert comments about all places. Two style comments can be used, Ruby style '#.....' and C style '/\*......*\/'.
+You can insert comments about all places. Two styles of comments can be used, Ruby style '#.....' and C style '/\*......*\/'.
 
 == Class Block
 
@@ -25,11 +25,11 @@ The class block is formed like this: https://github.com/ruby/ruby/blob/trunk/lib/racc/rdoc/grammar.en.rdoc#L25
   rule
     GRAMMARS
 
-CLASS_NAME is a name of parser class. This is the name of generating parser
+CLASS_NAME is a name of the parser class. This is the name of the generating parser
 class.
 
-If CLASS_NAME includes '::', Racc outputs module clause. For example, writing
-"class M::C" causes creating the code below:
+If CLASS_NAME includes '::', Racc outputs the module clause. For example, writing
+"class M::C" causes the code below to be created:
 
   module M
     class C
@@ -40,7 +40,7 @@ If CLASS_NAME includes '::', Racc output https://github.com/ruby/ruby/blob/trunk/lib/racc/rdoc/grammar.en.rdoc#L40
 
 == Grammar Block
 
-The grammar block describes grammar which is able to be understood by parser.
+The grammar block describes grammar which is able to be understood by the parser.
 Syntax is:
 
   (token): (token) (token) (token).... (action)
@@ -59,10 +59,10 @@ Note that you cannot use '%' string, her https://github.com/ruby/ruby/blob/trunk/lib/racc/rdoc/grammar.en.rdoc#L59
 
 Actions can be omitted. When it is omitted, '' (empty string) is used.
 
-A return value of action is a value of left side value ($$). It is value of
-result, or returned value by `return` statement.
+A return value of action is a value of the left side value ($$). It is the value of the
+result, or the returned value by `return` statement.
 
-Here is an example of whole grammar block.
+Here is an example of the whole grammar block.
 
   rule
     goal: definition rules source { result = val }
@@ -81,11 +81,11 @@ You can use the following special local https://github.com/ruby/ruby/blob/trunk/lib/racc/rdoc/grammar.en.rdoc#L81
 
 * result ($$)
 
-The value of left-hand side (lhs). A default value is val[0].
+The value of the left-hand side (lhs). A default value is val[0].
 
 * val ($1,$2,$3...)
 
-An array of value of right-hand side (rhs).
+An array of value of the right-hand side (rhs).
 
 * _values (...$-2,$-1,$0)
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]