{"id":{"repo_id":"buffalo","oai_identifier":"oai:ubir.buffalo.edu:10477/90399"},"canonical_url":"https://search.ndltd.org/etd/buffalo/oai:ubir.buffalo.edu:10477/90399","repository":{"repo_id":"buffalo","name":"Buffalo","base_url":"https://ubir.buffalo.edu/oai/request"},"display":{"title":"Typed, Algebraic Parser in Idris2","abstract":"Parsing transforms raw input into a structured representation using a set of rules. For example, in compilers, a parser converts a stream of characters into an intermediate representation like a Parse Tree or an Abstract Syntax Tree. Parser combinators are a popular way of building parsers, which use the tools in the host programming language to build small parsers and compose them into more complex parsers. Parser combinators are usually built using a recursive descent approach with backtracking and multiple lookahead tokens, resulting in poor worst-case time complexities. In this thesis, we have implemented a parser combinator library in Idris2 using a typed, algebraic approach. Internally, the library uses a custom type system defined for context-free expressions to identify ambiguous grammars. Furthermore, a typed grammar is deterministically parsed with no backtracking and a single lookahead token, guaranteeing linear-time performance. To demonstrate the practical application of the library, we have implemented parsers for S-expression, JSON, and the IMP programming language. These examples showcase the expressiveness of parser combinators and the robustness of the type checker without sacrificing performance.","abstract_html":"Parsing transforms raw input into a structured representation using a set of rules. For example, in compilers, a parser converts a stream of characters into an intermediate representation like a Parse Tree or an Abstract Syntax Tree. Parser combinators are a popular way of building parsers, which use the tools in the host programming language to build small parsers and compose them into more complex parsers. Parser combinators are usually built using a recursive descent approach with backtracking and multiple lookahead tokens, resulting in poor worst-case time complexities. In this thesis, we have implemented a parser combinator library in Idris2 using a typed, algebraic approach. Internally, the library uses a custom type system defined for context-free expressions to identify ambiguous grammars. Furthermore, a typed grammar is deterministically parsed with no backtracking and a single lookahead token, guaranteeing linear-time performance. To demonstrate the practical application of the library, we have implemented parsers for S-expression, JSON, and the IMP programming language. These examples showcase the expressiveness of parser combinators and the robustness of the type checker without sacrificing performance.","abstract_has_math":false,"creators":["Bellam, Vamsi Krishna"],"institution":"State University of New York at Buffalo","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":["Hirsch, Andrew","Computer Science and Engineering"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-19T07:11:05Z","subjects":["computer science"],"languages":["eng"],"rights":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10477/90399","outbound_label":"Handle","outbound_source":"dc:identifier","record_url":"https://hdl.handle.net/10477/90399","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Abuffalo%3Aoai%3Aubir.buffalo.edu%3A10477%2F90399","prefix":"oai_dc"},"source_record":{"url":"https://ubir.buffalo.edu/oai/request?verb=GetRecord&metadataPrefix=qdc&identifier=oai%3Aubir.buffalo.edu%3A10477%2F90399","prefix":"qdc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Hirsch, Andrew","Computer Science and Engineering"]},{"key":"dc:creator","label":"Author","values":["Bellam, Vamsi Krishna"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-02-26T00:48:50Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-02-26T00:48:50Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2026-02-26T00:48:50Z"]},{"key":"dc:date.issued","label":"Date","values":["2025"]},{"key":"dc:publisher","label":"Institution","values":["State University of New York at Buffalo"]},{"key":"dc:type","label":"Dc Type","values":["Text","Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["computer science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["http://hdl.handle.net/10477/90399"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Parsing transforms raw input into a structured representation using a set of rules. For example, in compilers, a parser converts a stream of characters into an intermediate representation like a Parse Tree or an Abstract Syntax Tree. Parser combinators are a popular way of building parsers, which use the tools in the host programming language to build small parsers and compose them into more complex parsers. Parser combinators are usually built using a recursive descent approach with backtracking and multiple lookahead tokens, resulting in poor worst-case time complexities. In this thesis, we have implemented a parser combinator library in Idris2 using a typed, algebraic approach. Internally, the library uses a custom type system defined for context-free expressions to identify ambiguous grammars. Furthermore, a typed grammar is deterministically parsed with no backtracking and a single lookahead token, guaranteeing linear-time performance. To demonstrate the practical application of the library, we have implemented parsers for S-expression, JSON, and the IMP programming language. These examples showcase the expressiveness of parser combinators and the robustness of the type checker without sacrificing performance.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"]},{"key":"dc:title","label":"Title","values":["Typed, Algebraic Parser in Idris2"]}]}],"canonical_facts":{"dc:contributor":["Hirsch, Andrew","Computer Science and Engineering"],"dc:creator":["Bellam, Vamsi Krishna"],"dc:date":["2026-02-26T00:48:50Z"],"dc:date.available":["2026-02-26T00:48:50Z"],"dc:date.created":["2026-02-26T00:48:50Z"],"dc:date.issued":["2025"],"dc:description.abstract":["Parsing transforms raw input into a structured representation using a set of rules. For example, in compilers, a parser converts a stream of characters into an intermediate representation like a Parse Tree or an Abstract Syntax Tree. Parser combinators are a popular way of building parsers, which use the tools in the host programming language to build small parsers and compose them into more complex parsers. Parser combinators are usually built using a recursive descent approach with backtracking and multiple lookahead tokens, resulting in poor worst-case time complexities. In this thesis, we have implemented a parser combinator library in Idris2 using a typed, algebraic approach. Internally, the library uses a custom type system defined for context-free expressions to identify ambiguous grammars. Furthermore, a typed grammar is deterministically parsed with no backtracking and a single lookahead token, guaranteeing linear-time performance. To demonstrate the practical application of the library, we have implemented parsers for S-expression, JSON, and the IMP programming language. These examples showcase the expressiveness of parser combinators and the robustness of the type checker without sacrificing performance.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"],"dc:identifier":["http://hdl.handle.net/10477/90399"],"dc:language":["eng"],"dc:publisher":["State University of New York at Buffalo"],"dc:rights":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."],"dc:subject":["computer science"],"dc:title":["Typed, Algebraic Parser in Idris2"],"dc:type":["Text","Thesis"]},"updated_at":"2026-11-19T07:11:05Z"}