[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685648-105":59,"doc-detail-685648-en":130,"doc-similar-685648":152},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","csc-347-concepts-of-programming-languages-course-overview","CSC 347 - Concepts of Programming Languages - Course Overview","","Course overview for CSC 347, Concepts of Programming Languages, taught by Stefan Mitsch. The material frames programming as step-by-step instructions that update state and interact with the environment, motivating the need for precise language definitions. It distinguishes syntax, semantics, and pragmatics, and demonstrates how the same intent can appear through different syntax and meaning. Examples cover statements and expressions, evaluation, recursion, L-values, argument passing, and parametric polymorphism, plus safety, memory, scope and lifetime. Pragmatics includes correctness reasoning and how to use language features effectively, including with large language models.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/csc-347-concepts-of-programming-languages-course-overview/685648/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/csc-347-concepts-of-programming-languages-course-overview/685648.png","ImageObject",300,407,{"name":92,"@type":93},"mieayamfan","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How does the course define programming in relation to state and interaction?","Question",{"text":112,"@type":113},"Programming provides step-by-step instructions that solve problems by updating state while interacting with the environment. The state can be memory, databases, or physical quantities, and the environment includes users and other agents.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are syntax, semantics, and pragmatics in the course framework?",{"text":117,"@type":113},"Syntax specifies the structure and rules for writing valid instructions (grammar). Semantics defines the meaning of valid instructions, and pragmatics covers how to use the language well through best practices.",{"name":119,"@type":110,"acceptedAnswer":120},"What is the practical goal of understanding programming languages well?",{"text":121,"@type":113},"Understanding PL supports producing high-quality code, assessing correctness and quality, evaluating performance, generalizing code, instructing tools to refactor and improve code, and reading, maintaining, and extending existing code.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},685648,1794016319,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":56,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":14,"preview_urls":144},962090893677,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","CSC 347-Concepts of Programming Languages  \nCourse Overview  \nInstructor: Stefan Mitsch  \n●􀆩 Philosophy of Language  \n\" What can be said at all can be said clearly; and whereof one cannot speak, thereof one must be silent. \" -Ludwig Wittgenstein  \n Autonomous and Intelligent Systems  \n 􀃗 Want a computer to perform a t ask (transfer money, order goods)  \n 􀑤 Interact with the physical world (drive a car, fly an airplane)  \n Requires clear instructions for predictable results: a programming language  \n􀉜 move left, right, up, down  \n􀆶 do one step and then another step  \n􀍙 repeat steps  \n●􀆩 PL Syntax, Semantics, Pragmatics  \nProgramming: step-by-step instructions to solve a problem by updating state and by interacting with the environment  \n􀏲 State is memory, database, ..., but also physical (location of robot, amount of water ina tank, species population, ...)  \n􀆋 Environment is user, ..., but also other agents ( cars, aircraft, ...)  \n􀌹 Steps are virtual, but also physical ( motors, valves, ...) Programming language  \n๊ Syntax: structure of a programming language and rules for writing valid instructions ( grammar)  \n􀇳 Semantics: meaning of valid instructions  \n􀉚 Pragmatics: how to use the language, best practices for writing code 4  \n PL Syntax and Semantics  \nDifferent Syntax, Same Semantics  \nJava Scala  \n1 final int x = y>0 ? 1 : -1;  \n1 val x = if y>0 then 1 else-1  \nSame Syntax, Different Semantics  \nJava  \n\n| 1 for ( var\u003Cbr>2 var x = 3 }\u003Cbr>4 // Here i | i = 0; i \u003C 10; i++) { i;\u003Cbr>and x are both undefined |  |\n| --- | --- | --- |\n\nJavaScript  \n1 for ( var i = 0; i \u003C 10; i++) {  \n2 var x = i; 3 }  \n4 // Here i is 10 and x is 9  \n5  \n PL Concepts by Example  \nJava  \n1 class Intro {  \n2 private static int isEven( int n ) {  \n3 return n % 2 == 0 ? 1 : 0;  \n4 }  \n5  \n6 public static int countEven( List\u003CInteger> xs) {  \n7 int result = 0;  \n8 if ( !xs .isEmpty( ) ) {  \n9 result =  \n10 isEven(xs .getFirst( ) ) +  \n11 countEven(xs .subList( 1 , xs .size( ) ) ) ; 12 }  \n13 return result;  \n14 }  \n15  \n16 public static void main(String [] args) {  \n17 List\u003CInteger> numbers =  \n18 [Arrays.stream](Arrays.stream)(args).  \n19 map( str -> Integer.parseInt( str) ) .  \n20 toList( ) ;  \n21 System .out.println( \"You entered \" + countEven( numbers) + 22 \" even numbers\" ) ;  \n23 }  \n24 }  \nConcepts  \n Statement s and expressions  \n Strict and nonstrict evaluation  \n Collection processing  \n Recursion  \n L-Values  \n Argument passing  \n Parametric polymorphism  \n PL Concepts by Example  \nC  \n1 int isEven( int n ) { return n % 2 == 0 ? 1 : 0; } 2  \n3 int countEven( int argc , const int* const xs) {  \n4 int result = 0;  \n5 if ( argc > 0 ) {  \n6 result =  \n7 isEven(xs [ 0 ] ) +  \n8 countEven( argc-1 , &xs [ 1 ] ) ; 9 }  \n10 return result; 11 }  \n12  \n13 int main( int argc , char **args) {  \n14 int *vals = malloc((argc-1)*sizeof( int) ) ;  \n15 for ( int i = 1; i \u003C argc; ++i) {  \n16 char* end;  \n17 vals [ i-1] = strtol( args [ i ], &end , 10) ;  \n18 // forgot to check whether all characters  \n19 // are consumed ( i .e . , end == '\\ 0 ' )  \n20 }  \n21 int numEven = countEven( argc-1 , vals) ;  \n22 printf( \"You entered %d even numbers\\ r\\ n\" , numEven) ;  \n23 // forgot to free the dynamically allocated memory  \n24 return 0;  \n25 }  \nMore Concepts  \n Safety and undefined behavior  \n Static and dynamic memory allocation  \n Scope and lifetime  \n7  \n PL Concepts by Example  \nScala  \n\n| 1 enum List :\u003Cbr>2 case Empty\u003Cbr>3 case Cons ( head : Int , tail:List) 4\u003Cbr>5 def length ( result : Int = 0 ) : Int = this match\u003Cbr>6 case List .Empty => result\u003Cbr>7 case List .Cons(a ,as) => length(as , result+1) 8\u003Cbr>9 object List :\u003Cbr>10 def create(elems : Int*) =\u003Cbr>11 elems .foldRight( List .Empty) ((e , l ) => List .Cons(e , l ) ) |  |\n| --- | --- |\n\nMore Concepts  \n Algebraic datatypes  \n Functional programming  \n Pattern matching  \n Tail recursion  \n Type inference  \n Currying  \n PL Pragmatics and Large Language Models  \n􀉙  \n􀎩  \n􀇐  \n1 Implement a Java program that coun","cbCaibMrYltgC73h","https://ap.wps.com/l/cbCaibMrYltgC73h","pdf",223437,"English","# Course Overview\n## Philosophy of Language\n## Autonomous and Intelligent Systems\n## PL Syntax, Semantics, Pragmatics\n## PL Concepts by Example\n## More Concepts\n## PL Pragmatics and Large Language Models\n## Why It Is Important to Understand PL Well?","[{\"question\":\"How does the course define programming in relation to state and interaction?\",\"answer\":\"Programming provides step-by-step instructions that solve problems by updating state while interacting with the environment. The state can be memory, databases, or physical quantities, and the environment includes users and other agents.\"},{\"question\":\"What are syntax, semantics, and pragmatics in the course framework?\",\"answer\":\"Syntax specifies the structure and rules for writing valid instructions (grammar). Semantics defines the meaning of valid instructions, and pragmatics covers how to use the language well through best practices.\"},{\"question\":\"What is the practical goal of understanding programming languages well?\",\"answer\":\"Understanding PL supports producing high-quality code, assessing correctness and quality, evaluating performance, generalizing code, instructing tools to refactor and improve code, and reading, maintaining, and extending existing code.\"}]","CSC 347 - Concepts of Programming Languages - Course Overview | PDF",48,[145,149],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/1b6472128b76c032a28bb4763698c0c3.webp",983,552,{"page_no":14,"url":150,"width":151,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2216b964b9ea68d1eb1ef416d9909e05.webp",982,{"list":153,"token":66},[154,160,167,174,181,187,194,201,207,214],{"doc_id":155,"doc_title":156,"file_type":137,"home_preview_img_url":157,"slug":158,"view_count":81,"category_name":40,"create_tm":159},732872,"Concepts of Programming Language Design","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031780247/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=mK%2BCxsDlckb7j1KA%2BlxqhOP%2FNTw%3D","concepts-of-programming-language-design",1795382642,{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":165,"category_name":40,"create_tm":166},9989,"The Study of Language Eighth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229697192126/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=jZNX82H1WrAzu8U23zzX%2F42NRpA%3D","the-study-of-language-eighth-edition",57,1776362648,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":172,"category_name":40,"create_tm":173},301089,"Language and Its Features - UNITV - Language","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905881773/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=cnn6LbUIuR2SoMs0G0nmbnLt45I%3D","language-and-its-features-unitv-language",22,1789779188,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":179,"category_name":40,"create_tm":180},85885,"Mechanised operational semantics of Rowhammer","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809490130/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=ZA3xwtrcoMMbmM8i7FEE7CkvcbM%3D","mechanised-operational-semantics-of-rowhammer",25,1784206943,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":19,"category_name":40,"create_tm":186},725320,"Every Teacher is a Language Teacher - Module Resources - Module 3","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230028531025/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=0tUC8YU7um6uATdHxs4P06%2BkNF8%3D","every-teacher-is-a-language-teacher-module-resources-module-3",1795208080,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":40,"create_tm":193},39887,"Types and Programming Languages","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229792622722/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=pmKnoyXQve5O0TU3mHjAfWSB%2FxM%3D","types-and-programming-languages",26,1783087703,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":40,"create_tm":200},319158,"Linguistic Terms and Their Propounder","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907766221/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=tRv%2BclWf5lFnPPmGNl5qA02qbKw%3D","linguistic-terms-and-their-propounder",24,1789941898,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":46,"category_name":40,"create_tm":206},521627,"Properties ofHuman Language - Unit 9 Linguistics, Phonetics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229939590522/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=js3rtS7Mc1nR4r6VWuKuVQ8KYfQ%3D","properties-of-human-language-unit-9-linguistics-phonetics",1791409472,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":40,"create_tm":213},388692,"The Glossary of Prosthodontic Terms 2023 - Tenth Edition - Reference and definitions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916347874/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=5WO9dUM8Oa79OFcNVBBpEKR9eOU%3D","the-glossary-of-prosthodontic-terms-2023-tenth-edition-reference-and-definitions",38,1790308879,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":192,"category_name":40,"create_tm":219},318074,"The Architecture of Language - A Journey into the Science of Linguistics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229908223085/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110019&Signature=GgWNnJHMUwEiHNn%2FIP9uChQwhF0%3D","the-architecture-of-language-a-journey-into-the-science-of-linguistics",1789939453]