git.wincent.com
/
walrat.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c3618
)
Correct example in Symbol documentation
author
Wincent Colaiuta <win@wincent.com>
Fri, 27 Aug 2010 15:49:02 +0000
(17:49 +0200)
committer
Wincent Colaiuta <win@wincent.com>
Fri, 27 Aug 2010 15:49:02 +0000
(17:49 +0200)
Signed-off-by: Wincent Colaiuta <win@wincent.com>
lib/walrat/additions/symbol.rb
patch
|
blob
|
history
diff --git
a/lib/walrat/additions/symbol.rb
b/lib/walrat/additions/symbol.rb
index b59fc94d7cfff3939ffd6db05519f1f82e7d4689..3e0be296e540c03f66316581a12c88a7ca0ff9b8 100755
(executable)
--- a/
lib/walrat/additions/symbol.rb
+++ b/
lib/walrat/additions/symbol.rb
@@
-31,7
+31,7
@@
class Symbol
# They can also be used to allow self-references within rules and productions
# (recursion); for example:
#
- # rule :thing & :thing.optional & :other_thing
+ # rule :thing
, :thing
& :thing.optional & :other_thing
#
# Basically these SymbolParslets allow deferred evaluation of a rule or
# production (deferred until parsing takes place) rather than being evaluated