{"id":1104,"date":"2016-03-09T10:00:30","date_gmt":"2016-03-09T10:00:30","guid":{"rendered":"https:\/\/www.benfreke.com\/?p=1104"},"modified":"2021-11-02T20:01:28","modified_gmt":"2021-11-02T20:01:28","slug":"syntax-parser","status":"publish","type":"post","link":"https:\/\/wordpress.benfreke.org\/2016\/03\/09\/syntax-parser\/","title":{"rendered":"Syntax Parser (Java)"},"content":{"rendered":"\n

The Syntax Parser (available on GitHub here<\/a>) is a simple Java application to parse a simple language similar to Ada.<\/p>\n\n\n\n\n\n\n\n

The task was to implement a syntax analyser (SA) for this language using a recursive descent parser. The analyser\u2019s sole function was make sure a user\u2019s source program is syntactically correct, and the SA had to generate appropriate and helpful error messages where required. The SA had to terminate on encountering and reporting the first error. To be more precise, we were expected to build a Syntax Recogniser as its purpose to recognise its input as a valid sentence in the language specified by the grammar. The task was to implement part of a compiler for this language using a recursive descent parser.<\/p>\n\n\n\n

The full coursework description can be found here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

The Syntax Parser (available on GitHub here) is a simple Java application to parse a simple language similar to Ada.<\/p>\n","protected":false},"author":1,"featured_media":1106,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/posts\/1104"}],"collection":[{"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/comments?post=1104"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/posts\/1104\/revisions"}],"predecessor-version":[{"id":1847,"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/posts\/1104\/revisions\/1847"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/media\/1106"}],"wp:attachment":[{"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/media?parent=1104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/categories?post=1104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.benfreke.org\/wp-json\/wp\/v2\/tags?post=1104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}