source: ruby/trunk/lib/adl_parser/lib/adl_parser.rb

Last change on this file was 307, checked in by Tatsukawa, Akimichi, 15 years ago

ADL parser is roughly coupled with open_ehr model classes

File size: 906 bytes
Line 
1# component: openEHR Ruby ADL parser implementation
2# description:
3# keywords: archetype, ADL, parser
4# author: Akimichi TATSUKAWA, Shinji KOBAYASHI
5# support: openEHR.jp
6# license: openEHR open source license
7
8$:.unshift File.join(File.dirname(__FILE__))
9require 'logger'
10require 'adl_scanner.rb'
11require 'adl_exception.rb'
12require 'parser.rb'
13
14module OpenEhr
15
16 if $DEBUG
17 LOG = Logger.new('log/adl_parser.log','daily')
18 LOG.level = Logger::INFO
19 else
20 LOG = Logger.new(STDOUT)
21 LOG.level = Logger::WARN
22 end
23
24
25 module ADL
26 autoload :Parser, "parser.rb"
27 autoload :Validator, "validator.rb"
28
29 module Scanner
30 module DADL
31 autoload :RootScanner, "adl_scanner.rb"
32 end
33 module CADL
34 autoload :RootScanner, "adl_scanner.rb"
35 end
36 end
37 end
38
39 module Application
40 autoload :ADLValidator, "shell.rb"
41 end # of Application
42
43
44end # of OpenEHR
Note: See TracBrowser for help on using the repository browser.