Changeset 36


Ignore:
Timestamp:
May 9, 2008, 8:12:55 PM (14 years ago)
Author:
Tatsukawa, Akimichi
Message:

created adl_parser-0.0.2 which requires yaparc version 0.2.2

Location:
ruby/trunk/adl_parser
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/adl_parser/Rakefile

    r26 r36  
    1111
    1212RACC_SRC = FileList["lib/*.y"]
    13 #RACC_PARSER = FileList['lib/parser.rb', 'lib/adl_parser.rb', 'lib/cparser.rb', 'lib/dparser.rb']
    1413RACC_PARSER = FileList['lib/parser.rb']
    1514
     
    9190  s.has_rdoc = true
    9291  s.extra_rdoc_files = ["README"]
    93   s.add_dependency("yaparc", ">= 0.2.0")
     92  s.add_dependency("yaparc", ">= 0.2.2")
    9493  s.add_dependency("openehr_models", ">= 0.0.1")
    9594end
  • ruby/trunk/adl_parser/lib/scanner.rb

    r34 r36  
    151151          end
    152152        end
    153 
     153=begin <DADL::Reserved class>
     154=end
    154155        class Reserved
    155156          include Yaparc::Parsable
     
    159160              reserved_parsers = OpenEHR::ADL::Scanner::DADL::RESERVED.map do |keyword|
    160161                Yaparc::Tokenize.new(
    161                                      Yaparc::Literal.new(keyword[0])
     162                                     Yaparc::Literal.new(keyword[0],false)
    162163                                     )
    163164              end
     
    300301        end
    301302
     303=begin <CADL::Reserved class>
     304=end
    302305        class Reserved
    303306          include Yaparc::Parsable
     
    307310              orderd_reserved = RESERVED.keys.sort{|x,y| y.length <=> x.length  }
    308311              reserved_parsers = orderd_reserved.map do |keyword|
    309                 Yaparc::Literal.new(keyword)
     312                Yaparc::Literal.new(keyword,false)
    310313              end
    311314              Yaparc::Alt.new(Yaparc::Apply.new(Yaparc::Alt.new(*reserved_parsers)) do |match|
Note: See TracChangeset for help on using the changeset viewer.