{"title":"预测程序合成","authors":"R. R. Loka","doi":"10.1145/317164.317175","DOIUrl":null,"url":null,"abstract":"Program Synthesizers are becoming increasingly useful for program creation. However, a majority of these synthesizers are apparently not truly language sensitive. This is indicated by the fact that most of them use error-correcting parsers. We consider the Program Synthesizer as a formal predictive sentence generator with control given to the programmer. For the purpose of generating a (syntactically) correct sentence (or program), our method relies heavily on the underlying LL(k) parse-table for the corresponding programming language. The method demonstrates our 'Prevention is Better than Correction' notion and correspondingly the need for an error-correcting parser can be eliminated. Our method also eliminates the need for 'fetch-template' commands, thus accelerating the program entry. Finally an example session is shown with a non-trivial subset of Modula-2.","PeriodicalId":147067,"journal":{"name":"Symposium on Small Systems","volume":"25 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1985-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Predictive program synthesize\",\"authors\":\"R. R. Loka\",\"doi\":\"10.1145/317164.317175\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Program Synthesizers are becoming increasingly useful for program creation. However, a majority of these synthesizers are apparently not truly language sensitive. This is indicated by the fact that most of them use error-correcting parsers. We consider the Program Synthesizer as a formal predictive sentence generator with control given to the programmer. For the purpose of generating a (syntactically) correct sentence (or program), our method relies heavily on the underlying LL(k) parse-table for the corresponding programming language. The method demonstrates our 'Prevention is Better than Correction' notion and correspondingly the need for an error-correcting parser can be eliminated. Our method also eliminates the need for 'fetch-template' commands, thus accelerating the program entry. Finally an example session is shown with a non-trivial subset of Modula-2.\",\"PeriodicalId\":147067,\"journal\":{\"name\":\"Symposium on Small Systems\",\"volume\":\"25 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1985-05-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Symposium on Small Systems\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/317164.317175\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Symposium on Small Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/317164.317175","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Program Synthesizers are becoming increasingly useful for program creation. However, a majority of these synthesizers are apparently not truly language sensitive. This is indicated by the fact that most of them use error-correcting parsers. We consider the Program Synthesizer as a formal predictive sentence generator with control given to the programmer. For the purpose of generating a (syntactically) correct sentence (or program), our method relies heavily on the underlying LL(k) parse-table for the corresponding programming language. The method demonstrates our 'Prevention is Better than Correction' notion and correspondingly the need for an error-correcting parser can be eliminated. Our method also eliminates the need for 'fetch-template' commands, thus accelerating the program entry. Finally an example session is shown with a non-trivial subset of Modula-2.