Comments (11)
I am writing on, but always welcome to merge your pull request.
from openehr-ruby.
This is my working repository on ADL15parser. I am testing parslet parser library.
https://github.com/skoba/adl15parser-ruby
from openehr-ruby.
Thanks, I'll take a look!
from openehr-ruby.
I am much sorry to be inactive.
from openehr-ruby.
No worries, Shinji, you're doing great work with OpenEHR and Ruby!
I looked at the adl15parser-ruby
repository and it looks like it's just a skeleton at this point. Any reason why, other than lack of time, you stopped developing it?
There are quite a few changes coming from 1.4: http://www.openehr.org/wiki/display/ADL/Evolution+from+ADL+1.4 but there is a reference compiler implementation here: http://www.openehr.org/wiki/display/ADL/ADL+1.5+parser+resources
There is an effort to write an EBNF description of 1.5 here:
https://github.com/aanastasiou/adl_ebnf
What would you say the hardest part for supporting 1.5 will be?
I'm sure you know all of this already, but it might be a good idea to have these references here for posterity.
from openehr-ruby.
Two reasons.
- OPT parser would be emerging.
Actually, templates are more available than ADL 1.5 archetypes - Flatten form of archetype or ontology.
I cannot figure out the flatten form of ontology of ADL/AOM 1.5. I think this is the hardest point.
from openehr-ruby.
My ADL 1.4 parser has been written by Treetop parser generator, but it became huge and ugly to read. That 's the reason I am trying to reimplement ADL parser by parslet.
from openehr-ruby.
Oh, OPT is the template parser. But 1.5 archetypes will be able to be templates as well? Won't that make the OPT parser unnecessary?
It looks like @aanastasiou is trying to come up with an ANTLR definition of ADL, which would enable him to generate a code artifact from the definition. What are your thoughts on that approach?
I think @wolandscat is also very interested in various implementations of ADL in the wild, so I'm pinging him too.
Is there any ADL 1.5 parser out there at all? In any language?
from openehr-ruby.
I know only the Eiffel implementation for ADL 1.5 parser.
https://github.com/openEHR/adl-tools/tree/master/components/adl_compiler/src/syntax/adl/parser
I think implementation diversity would be a powerful proof of syntax validity, too.
from openehr-ruby.
Hello Jure
You probably need to have a closer look at the openEHR specifications (here: http://www.openehr.org/programs/specification/releases/1.0.2) or at least http://www.openehr.org/releases/1.0.2/architecture/overview.pdf cover-to-cover and from there go through the "Archetype Model" documents selectively and gradually. You can also have a look at http://www.openehr.org/wiki/display/ADL/Evolution+from+ADL+1.4 which talks extensively about "specialisation" which is a key concept to understand templates.
Archetypes become usable in templates. Your "top-level" object is the Template, not the Archetype. A template can reference many different archetypes and provides additional constraints to them FOR A SPECIFIC USE.
Is there any ADL 1.5 parser out there at all? In any language?
I second Singhi's response (But, don't forget, we have the specification, therefore, we essentially know the language)
Key question in all of this: What are you trying to do?
from openehr-ruby.
I just implemented ADL1.5 parser by parslet, but it needs to transform to generate archetype instances.
https://github.com/skoba/adl15parser-ruby
from openehr-ruby.
Related Issues (15)
- ADL parser does not work well on ruby 1.9.2 HOT 1
- Error causes with treetop 1.4.14 HOT 4
- scanner implementation HOT 1
- RubyWorld Conference 2013 HOT 4
- openehr-ruby roadmap and development guideline HOT 1
- A little help HOT 4
- ADL Parser not working HOT 8
- Hello, anybody? HOT 2
- remote platform HOT 5
- ADL Validator
- ADL Serializer
- RMFactory
- RMFactory HOT 1
- Implementation Guide HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openehr-ruby.