Re: AQL ANTLR4-grammar

2015-08-25 Thread Bert Verhees
On 25-08-15 09:39, Bert Verhees wrote: I would like to know an example or description of an issue in which Antlr4.5 does not work good enough in the OpenEHR context. I think that information can help me and other developers really a lot. I did some shallow research, maybe it can help answering

Re: AQL ANTLR4-grammar

2015-08-25 Thread Bert Verhees
On 25-08-15 04:12, Thomas Beale wrote: Antlr doesn't do anything like full regex. A teacher, years ago, told the classroom, if you try to solve a problem with regex, then you have another problem added. (he was joking, but not entirely) I would like to know an example or description of an is

Re: AQL ANTLR4-grammar

2015-08-24 Thread Bert Verhees
On 25-08-15 04:12, Thomas Beale wrote: actually - these are all output stages, and they are perfectly doable with any yacc/lex compiler serialiser - which is what the ADL workbench is, and what it does. Antlr des make a lot of this easier however. That is interesting, I didn't realize that. Th

Re: AQL ANTLR4-grammar

2015-08-24 Thread Thomas Beale
On 24/08/2015 11:38, Bert Verhees wrote: On 24-08-15 15:36, Thomas Beale wrote: Antlr4 rule capabilities and particularly pattern matching is weaker than yacc/lex (in some cases quite a lot weaker), Of course, Yacc/lex can only be used to generate C-code. It's functionality in pattern matching

Re: AQL ANTLR4-grammar

2015-08-24 Thread Bert Verhees
> Over time, I expect we'll cnvert everything to Antlr4. Last remark, I thought there were doubts and delays regarding to converting to antlr4, also because of the expressed doubt about its quality, this message gave me the idea, but as I checked the sources, which I was not aware of, there is rea

Re: AQL ANTLR4-grammar

2015-08-24 Thread Bert Verhees
On 24-08-15 15:36, Thomas Beale wrote: but it's more concise for the production rules, and as you say, it works for any output side. So that's a big win. Over time, I expect we'll cnvert everything to Antlr4. To say that, have you ever seen code generated by yacc/lex, bison or JJ. It is unread

Re: AQL ANTLR4-grammar

2015-08-24 Thread Bert Verhees
On 24-08-15 15:36, Thomas Beale wrote: Antlr4 rule capabilities and particularly pattern matching is weaker than yacc/lex (in some cases quite a lot weaker), Of course, Yacc/lex can only be used to generate C-code. It's functionality in pattern matching is limited to this. To do whatever you n

Re: AQL ANTLR4-grammar

2015-08-24 Thread Thomas Beale
quick answer for now - there are base patterns that should be used across other projects like AQL * here in the specifictions-BASE repository * here in the specifications-AM repository

Re: AQL ANTLR4-grammar

2015-08-24 Thread Thomas Beale
Antlr4 rule capabilities and particularly pattern matcing is weaker than yacc/lex (in some cases quite a lot weaker), but it's more concise for the production rules, and as you say, it works for any output side. So that's a big win. Over time, I expect we'll cnvert everything to Antlr4. On 2

AQL ANTLR4-grammar

2015-08-24 Thread ANASTASIOU A .
Hello everyone Please see further below regarding a few first steps towards "converting" Chunlan's .g files in combination with Eiffel's lexer files to ANTLR's syntax. My main motivation for doing this was to produce syntax diagrams for ADL and AQL but very early on I realized that there was no

Re: AQL ANTLR4-grammar

2015-08-23 Thread Bert Verhees
I wrote this a bit confusing, too late at night and on my mobile (small screen). The idea I wanted to write is that with Antlr4, you can write a grammar, without knowing the purpose of the grammar. If it is used to write a query engine, or if it is used to write a translator from AQL to XQuery

Re: AQL ANTLR4-grammar

2015-08-23 Thread Bert Verhees
I am working with Antlr4, studying it also. It's possibilities are amazing. I think it is the best grammar environment, Terence Parr (rhe designer of it) explains why, and I think he is right. One important reason is that Antlr4 does not need code fragments in its grammar so that he grammar really

AQL ANTLR4-grammar

2015-08-23 Thread Erik Sundvall
Hi! At Medinfo2015 i have been positively surprised by all the different openEHR implementations that I had not heard of before. AQL capability is present or planned in both some of the previously and recently known openEHR implemetnations It would be good to collaborate around testing, updates