{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/328","repository_url":"https://api.github.com/repos/tbeu/ModelicaSpecification","labels_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/328/comments","events_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/328/events","html_url":"https://github.com/tbeu/ModelicaSpecification/issues/328","id":372180294,"node_id":"MDU6SXNzdWUzNzIxODAyOTQ=","number":328,"title":"\"output_expression_list\" does not make sense in the definition of primary","user":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[{"id":1097433286,"node_id":"MDU6TGFiZWwxMDk3NDMzMjg2","url":"https://api.github.com/repos/tbeu/ModelicaSpecification/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"tbeu","id":5444067,"node_id":"MDQ6VXNlcjU0NDQwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/5444067?v=4","gravatar_id":"","url":"https://api.github.com/users/tbeu","html_url":"https://github.com/tbeu","followers_url":"https://api.github.com/users/tbeu/followers","following_url":"https://api.github.com/users/tbeu/following{/other_user}","gists_url":"https://api.github.com/users/tbeu/gists{/gist_id}","starred_url":"https://api.github.com/users/tbeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbeu/subscriptions","organizations_url":"https://api.github.com/users/tbeu/orgs","repos_url":"https://api.github.com/users/tbeu/repos","events_url":"https://api.github.com/users/tbeu/events{/privacy}","received_events_url":"https://api.github.com/users/tbeu/received_events","type":"User","site_admin":false},"assignees":[{"login":"tbeu","id":5444067,"node_id":"MDQ6VXNlcjU0NDQwNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/5444067?v=4","gravatar_id":"","url":"https://api.github.com/users/tbeu","html_url":"https://github.com/tbeu","followers_url":"https://api.github.com/users/tbeu/followers","following_url":"https://api.github.com/users/tbeu/following{/other_user}","gists_url":"https://api.github.com/users/tbeu/gists{/gist_id}","starred_url":"https://api.github.com/users/tbeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbeu/subscriptions","organizations_url":"https://api.github.com/users/tbeu/orgs","repos_url":"https://api.github.com/users/tbeu/repos","events_url":"https://api.github.com/users/tbeu/events{/privacy}","received_events_url":"https://api.github.com/users/tbeu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-20T06:41:20Z","updated_at":"2018-10-20T06:41:39Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Reported by Teemu Lempinen on 28 Feb 2013 08:41 UTC**\nWe noticed that expressions like the following are valid in Modelica syntax:\n\n```\n\"(,,,,)^(,,,,)\"\n``` \n\nThe definition of primary has the option \"(\" output_expression_list \")\" which, to us, does not make sense.\n\n```\nprimary :\nUNSIGNED_NUMBER\n | STRING\n | false\n | true\n | ( name | der | initial) function_call_args\n | component_reference\n | \"(\" output_expression_list \")\"\n | \"[\" expression_list { \";\" expression_list } \"]\"\n | \"{\" function_arguments \"}\"\n | end\n```\n\nAs far as we know, the only place where output_expression_list is needed is in statements:\n\n```\nstatement :\n( component_reference ( \":=\" expression | function_call_args )\n| \"(\" output_expression_list \")\" \":=\" component_reference function_call_args\n|...\n```\n\nIs there a reason for output_expression_list in primary or is it an error in the specification?\n\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/1005"},"comment":{"url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/comments/431554638","html_url":"https://github.com/tbeu/ModelicaSpecification/issues/328#issuecomment-431554638","issue_url":"https://api.github.com/repos/tbeu/ModelicaSpecification/issues/328","id":431554638,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU1NDYzOA==","user":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T06:41:39Z","updated_at":"2018-10-20T06:41:39Z","author_association":"COLLABORATOR","body":"**Comment by hansolsson on 28 Feb 2013 08:54 UTC**\nAnd building on Sjölund's answer: this allows the grammar to be useful with tools relying on LL-k parser-generators for the case:\n` (a.b.c... `\nInstead there is then a semantic restriction for where to use output_expression_list.\n\nSo: Yes, there is a reason. (Although not a really good one.)"}}
{"actor":{"display_login":"modelica-trac-importer"}}