source: ruby/trunk/adl_parser/README@ 18

Last change on this file since 18 was 18, checked in by Tatsukawa, Akimichi, 16 years ago

parsing c_any fails

File size: 2.3 KB
Line 
1= Synopsis
2
3A ruby library for ADL parser which includes cADL and dADL parser.
4
5= Requirements
6
7* Ruby 1.8 or later.
8* Yaparc Library 0.2.0 or later.
9* Tested in Ruby 1.8.6.
10* if you use Ruby 1.6, you should prepare racc runtime environment and some adjustment.
11
12= Usage
13
14The script 'bin/adl_validator.rb' validates given ADL files.
15
16 Usage: bin/adl_validator.rb [file_name|http://location.to.adl]+ [options]
17 -v, --verbose display verbose message(Not Implemented Yet)
18 -h, --help display this help
19
20In order to validate an ADL file on your local machine, just give the file name as an argument as follows.
21
22 $ bin/adl_validator.rb tests/openEHR-EHR-CLUSTER.exam-chest.v1.adl
23 =>
24 Accepted 'tests/openEHR-EHR-CLUSTER.exam-chest.v1.adl'
25
26If you want to validate a remote ADL file on the web, specify its URL location.
27
28 $ bin/adl_validator.rb http://svn.openehr.org/knowledge/archetypes/dev/adl/openehr/ehr/cluster/openEHR-EHR-CLUSTER.auscultation-chest.v1.adl
29 =>
30 Accepted 'http://svn.openehr.org/knowledge/archetypes/dev/adl/openehr/ehr/cluster/openEHR-EHR-CLUSTER.auscultation-chest.v1.adl'
31
32In addition, you can try unit testing.
33
34 $ rake test
35
36= Files and Paths
37
38* Path
39+ bin --+--- adl_validator.rb
40+ lib --+--- parser.rb
41 +--- parser.y
42 +--- validator.rb
43 +--- shell.rb
44
45* bin/adl_validator.rb
46The command-line ADL validator.
47
48* lib/parser.rb
49This is the key library for ADL parsing. This parser algorithm is LALR implemented in racc library.
50This file contains one module and one class first generated by racc from grammertical definition of parser.y.
51Main class is ADLParser that scans ADL and parses both cADL and dADL.
52
53= License
54
55This product is under openEHR Open Source Software License
56
57The openEHR Foundation uses the Mozilla Tri-license 1.1 on all software copyrighted to the Foundation. This licence essentially provides the user a choice of licence conditions under which to operate with any given piece of software, being: the Mozilla Public licence (MPL), and the Free Software Foundation GNU General Public Licence (GPL) and Lesser GNU Public Licence (LGPL). See the Mozilla relicensing FAQ for details of this license. This in no way constrains the way in which software created by other organisations is licenced.
Note: See TracBrowser for help on using the repository browser.