lib/parslet/atoms.rb in parslet-1.0.1 vs lib/parslet/atoms.rb in parslet-1.1.0
- old
+ new
@@ -1,5 +1,8 @@
+
+# This is where parslets name comes from: Small parser atoms.
+#
module Parslet::Atoms
# The precedence module controls parenthesis during the #inspect printing
# of parslets. It is not relevant to other aspects of the parsing.
#
module Precedence # :nodoc:
@@ -10,16 +13,17 @@
SEQUENCE = (prec+=1) # 'a' 'b'
ALTERNATE = (prec+=1) # 'a' | 'b'
OUTER = (prec+=1) # printing is done here.
end
- autoload :Base, 'parslet/atoms/base'
- autoload :Named, 'parslet/atoms/named'
- autoload :Lookahead, 'parslet/atoms/lookahead'
- autoload :Alternative, 'parslet/atoms/alternative'
- autoload :Sequence, 'parslet/atoms/sequence'
- autoload :Repetition, 'parslet/atoms/repetition'
- autoload :Re, 'parslet/atoms/re'
- autoload :Str, 'parslet/atoms/str'
- autoload :Entity, 'parslet/atoms/entity'
+ require 'parslet/atoms/context'
+ require 'parslet/atoms/base'
+ require 'parslet/atoms/named'
+ require 'parslet/atoms/lookahead'
+ require 'parslet/atoms/alternative'
+ require 'parslet/atoms/sequence'
+ require 'parslet/atoms/repetition'
+ require 'parslet/atoms/re'
+ require 'parslet/atoms/str'
+ require 'parslet/atoms/entity'
end