{"action":"created","issue":{"url":"https://api.github.com/repos/csound/csound/issues/649","repository_url":"https://api.github.com/repos/csound/csound","labels_url":"https://api.github.com/repos/csound/csound/issues/649/labels{/name}","comments_url":"https://api.github.com/repos/csound/csound/issues/649/comments","events_url":"https://api.github.com/repos/csound/csound/issues/649/events","html_url":"https://github.com/csound/csound/issues/649","id":158951206,"number":649,"title":"Orchestra grammar uses default Flex rule","user":{"login":"nwhetsell","id":14102861,"avatar_url":"https://avatars.githubusercontent.com/u/14102861?v=3","gravatar_id":"","url":"https://api.github.com/users/nwhetsell","html_url":"https://github.com/nwhetsell","followers_url":"https://api.github.com/users/nwhetsell/followers","following_url":"https://api.github.com/users/nwhetsell/following{/other_user}","gists_url":"https://api.github.com/users/nwhetsell/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhetsell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhetsell/subscriptions","organizations_url":"https://api.github.com/users/nwhetsell/orgs","repos_url":"https://api.github.com/users/nwhetsell/repos","events_url":"https://api.github.com/users/nwhetsell/events{/privacy}","received_events_url":"https://api.github.com/users/nwhetsell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-07T15:21:30Z","updated_at":"2016-06-07T18:06:43Z","closed_at":null,"body":"The orchestra grammar [csound_orc.l](https://github.com/csound/csound/blob/develop/Engine/csound_orc.l) seems to use Flex’s default rule, which matches one character and prints it to standard output. This means that syntax-checking\r\n\r\n```csound\r\ninstr 1\r\n  prints \"hello, world\\n\"\r\n  `@.\\$•🎹\r\nendin\r\nscoreline_i {{\r\n  i 1 0 0\r\n  e\r\n}}\r\n```\r\n\r\nusing\r\n\r\n```\r\ncsound --orc Test.orc --syntax-check-only\r\n```\r\n\r\nshows that the orchestra is correct and prints the characters in line&nbsp;3 to standard output:\r\n\r\n```\r\nSyntax check completed.\r\nend of score.\t\t   overall amps:      0.0\r\n\t   overall samples out of range:        0\r\n0 errors in performance\r\nElapsed time at end of performance: real: 0.002s, CPU: 0.002s\r\n`@.\\$•🎹\r\n```\r\n\r\nRunning the orchestra using\r\n\r\n```\r\ncsound --nosound --orc Test.orc\r\n```\r\n\r\nproduces\r\n\r\n```\r\n--Csound version 6.07 (double samples) May 16 2016\r\ngraphics suppressed, ascii substituted\r\n0dBFS level = 32768.0\r\norch now loaded\r\naudio buffered in 1024 sample-frame blocks\r\nnot writing to sound disk\r\nSECTION 1:\r\nnew alloc for instr 1:\r\nhello, world\r\nScore finished in csoundPerform().\r\ninactive allocs returned to freespace\r\nend of score.\t\t   overall amps:      0.0\r\n\t   overall samples out of range:        0\r\n0 errors in performance\r\nElapsed time at end of performance: real: 0.001s, CPU: 0.001s\r\nno sound written to disk\r\n`@.\\$•🎹\r\n```"},"comment":{"url":"https://api.github.com/repos/csound/csound/issues/comments/224364803","html_url":"https://github.com/csound/csound/issues/649#issuecomment-224364803","issue_url":"https://api.github.com/repos/csound/csound/issues/649","id":224364803,"user":{"login":"nwhetsell","id":14102861,"avatar_url":"https://avatars.githubusercontent.com/u/14102861?v=3","gravatar_id":"","url":"https://api.github.com/users/nwhetsell","html_url":"https://github.com/nwhetsell","followers_url":"https://api.github.com/users/nwhetsell/followers","following_url":"https://api.github.com/users/nwhetsell/following{/other_user}","gists_url":"https://api.github.com/users/nwhetsell/gists{/gist_id}","starred_url":"https://api.github.com/users/nwhetsell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwhetsell/subscriptions","organizations_url":"https://api.github.com/users/nwhetsell/orgs","repos_url":"https://api.github.com/users/nwhetsell/repos","events_url":"https://api.github.com/users/nwhetsell/events{/privacy}","received_events_url":"https://api.github.com/users/nwhetsell/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T18:06:43Z","updated_at":"2016-06-07T18:06:43Z","body":"> Should one ignore tese caraxter or give a syntax error?\r\n\r\nMy personal expectation would be that those characters produce syntax errors (especially since `@.` is not expandable to a power of 2 and `$•🎹` is not a valid use of a macro), but given that backwards compatibility is a main principle in Csound development, I can’t really answer this."}}
{"actor":{"display_login":"nwhetsell"}}