Vis enkel innførsel

dc.contributor.authorHundvin, Maren Holm
dc.date.accessioned2023-01-24T03:10:45Z
dc.date.available2023-01-24T03:10:45Z
dc.date.issued2022-10-25
dc.date.submitted2023-01-23T09:32:07Z
dc.identifier.urihttps://hdl.handle.net/11250/3045511
dc.description.abstractProgramming languages are the basis of computer science and are extensively used in computer science education. Many educational materials, such as tutorials, constantly appear on the market with the goal of targeting various user groups. These tutorials, however, oftentimes present language constructs in inconsistent ways, with constructs completely missing from some of the tutorials. This makes it difficult for a language learner to get a holistic overview of the language. In this thesis, we focus on syntax of programming languages, specified in a form of context-free grammars, and design an algorithm to generate syntactically correct sample code snippets written in the language in question. Our algorithm can be used to comprehensively explore constructs of a programming language. We test our prototype implementation of the designed algorithm on several grammars, including a tiny model programming language and a children-oriented programming language Hedy.
dc.language.isoeng
dc.publisherThe University of Bergen
dc.rightsCopyright the Author. All rights reserved
dc.subjectparsing
dc.subjectexample generation
dc.subjectgrammars
dc.subjectLark
dc.titleGenerating sample code snippets from Lark grammar specifications
dc.typeMaster thesis
dc.date.updated2023-01-23T09:32:07Z
dc.rights.holderCopyright the Author. All rights reserved
dc.description.degreeMasteroppgave i Programutvikling samarbeid med HVL
dc.description.localcodePROG399
dc.description.localcodeMAMN-PROG
dc.subject.nus754199
fs.subjectcodePROG399
fs.unitcode12-12-0


Tilhørende fil(er)

Thumbnail

Denne innførselen finnes i følgende samling(er)

Vis enkel innførsel