Thanks, I come back to this

Bert

Thomas Beale schreef op 2-12-2015 om 9:44:


On 02/12/2015 07:57, Bert Verhees wrote:
Thomas Beale schreef op 1-12-2015 om 20:42:

Bert

things that you might think about that I have not done yet:

  * whether we put error branches in the grammar -  I had a lot of
    these in the old .y grammars. All gone for now.

I like to see them, can you post a link?

ADL - https://github.com/openEHR/adl-tools/blob/master/components/adl_compiler/src/syntax/adl/parser/adl_2_parser.y CADL - https://github.com/openEHR/adl-tools/blob/master/components/adl_compiler/src/syntax/cadl/parser/cadl_2_parser.y

typical example of code:

c_complex_object_id: type_identifier V_ROOT_ID_CODE

        {

        if object_nodes.is_empty then

        create $$.make ($1, $2)

        else

        abort_with_error (ec_VARND, <<$2, Id_code_regex_pattern>>)

        end

        }

        | type_identifier V_ID_CODE

        {

        if not object_nodes.is_empty then

        create $$.make ($1, $2)

        else

        abort_with_error (ec_VARCN, <<$2, Root_id_code_regex_pattern>>)

        end

        }




  * whether to put labels on sub-parts of parser rules - will
    generally only be determinable by implementers - it's hard for
    me to guess where to put these

Also here, can you give a list and example what it is you are writing about

https://theantlrguy.atlassian.net/wiki/display/ANTLR4/Actions+and+Attributes - look for 'labels'

  * there are still a few outstanding annoyances

Please list them, now I am diving into it, I can as well take some time for that.

https://github.com/openEHR/adl-antlr/issues

- thomas



_______________________________________________
openEHR-implementers mailing list
openEHR-implementers@lists.openehr.org
http://lists.openehr.org/mailman/listinfo/openehr-implementers_lists.openehr.org

_______________________________________________
openEHR-implementers mailing list
openEHR-implementers@lists.openehr.org
http://lists.openehr.org/mailman/listinfo/openehr-implementers_lists.openehr.org

Reply via email to