{"action":"created","issue":{"url":"https://api.github.com/repos/openEHR/adl-antlr/issues/7","labels_url":"https://api.github.com/repos/openEHR/adl-antlr/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/openEHR/adl-antlr/issues/7/comments","events_url":"https://api.github.com/repos/openEHR/adl-antlr/issues/7/events","html_url":"https://github.com/openEHR/adl-antlr/issues/7","id":112034407,"number":7,"title":"lexer errors on regular expressions","user":{"login":"pieterbos","id":21126,"avatar_url":"https://avatars.githubusercontent.com/u/21126?v=3","gravatar_id":"","url":"https://api.github.com/users/pieterbos","html_url":"https://github.com/pieterbos","followers_url":"https://api.github.com/users/pieterbos/followers","following_url":"https://api.github.com/users/pieterbos/following{/other_user}","gists_url":"https://api.github.com/users/pieterbos/gists{/gist_id}","starred_url":"https://api.github.com/users/pieterbos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pieterbos/subscriptions","organizations_url":"https://api.github.com/users/pieterbos/orgs","repos_url":"https://api.github.com/users/pieterbos/repos","events_url":"https://api.github.com/users/pieterbos/events{/privacy}","received_events_url":"https://api.github.com/users/pieterbos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openEHR/adl-antlr/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/openEHR/adl-antlr/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"wolandscat","id":1481744,"avatar_url":"https://avatars.githubusercontent.com/u/1481744?v=3","gravatar_id":"","url":"https://api.github.com/users/wolandscat","html_url":"https://github.com/wolandscat","followers_url":"https://api.github.com/users/wolandscat/followers","following_url":"https://api.github.com/users/wolandscat/following{/other_user}","gists_url":"https://api.github.com/users/wolandscat/gists{/gist_id}","starred_url":"https://api.github.com/users/wolandscat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolandscat/subscriptions","organizations_url":"https://api.github.com/users/wolandscat/orgs","repos_url":"https://api.github.com/users/wolandscat/repos","events_url":"https://api.github.com/users/wolandscat/events{/privacy}","received_events_url":"https://api.github.com/users/wolandscat/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-10-18T18:45:37Z","updated_at":"2015-10-28T14:00:07Z","closed_at":null,"body":"There is no regular expression lexer rule present. So if you try to parse for example\r\n\r\n```\r\n\t\t\tallow_archetype OBSERVATION[id2] occurrences matches {0..1} matches {\t-- Vital signs\r\n\t\t\t\tinclude\r\n\t\t\t\t\tarchetype_id/value matches {/openEHR-EHR-OBSERVATION\\.exam(-a-zA-Z0-9_]+)*\\.v1/}\r\n\t\t\t\texclude\r\n\t\t\t\t\tarchetype_id/value matches {/openEHR-EHR-OBSERVATION\\.blood_pressure(-a-zA-Z0-9_]+)*\\.v1/}\r\n\t\t\t}\r\n```\r\nYou get lexer errors:\r\n\r\n```\r\ntrying to parse adl2-tests/validity/slots/openEHR-EHR-SECTION.VDSEV_slot_include_not_any_exclude_not_any.v1.adls\r\nline 30:74 token recognition error at: '_'\r\nline 32:84 token recognition error at: '_'\r\n```"},"comment":{"url":"https://api.github.com/repos/openEHR/adl-antlr/issues/comments/151854497","html_url":"https://github.com/openEHR/adl-antlr/issues/7#issuecomment-151854497","issue_url":"https://api.github.com/repos/openEHR/adl-antlr/issues/7","id":151854497,"user":{"login":"wolandscat","id":1481744,"avatar_url":"https://avatars.githubusercontent.com/u/1481744?v=3","gravatar_id":"","url":"https://api.github.com/users/wolandscat","html_url":"https://github.com/wolandscat","followers_url":"https://api.github.com/users/wolandscat/followers","following_url":"https://api.github.com/users/wolandscat/following{/other_user}","gists_url":"https://api.github.com/users/wolandscat/gists{/gist_id}","starred_url":"https://api.github.com/users/wolandscat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolandscat/subscriptions","organizations_url":"https://api.github.com/users/wolandscat/orgs","repos_url":"https://api.github.com/users/wolandscat/repos","events_url":"https://api.github.com/users/wolandscat/events{/privacy}","received_events_url":"https://api.github.com/users/wolandscat/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T14:00:07Z","updated_at":"2015-10-28T14:00:07Z","body":"I don't know if that can work or not - note that the '{' matching is done inline in the parser rules, which is how I think it should be. If we introduce a lexer pattern for '{/' how does it interact with that other matching?"}}