Title In-browser C++ interpreter for lightweight intelligent programming learning environments
Authors Blažauskas, Tomas ; Rauba, Arnoldas ; Swacha, Jakub ; Montella, Raffaele ; Maskeliunas, Rytis
DOI 10.4230/OASIcs.ICPEC.2025.14
ISBN 9783959773935
Full Text Download
Is Part of 6th international computer programming education conference (ICPEC), 10-11 July 2025, Portic, Polytechnic of Porto, Portugal / R. Queirós, M. Pinto, F. Portela, A. Simões (eds.).. Wadern : Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. p. 1-15.. ISBN 9783959773935
Keywords [eng] C++ interpreter ; browser-based execution ; programming education ; LLMassisted learning ; PEG ; AST ; TypeScript runtime
Abstract [eng] The paper presents a browser native C++ interpreter integrated into an AI-assisted educational platform designed to enhance programming learning in formal education. The interpreter leverages Parsing Expression Grammars (PEG) to generate Abstract Syntax Trees (AST) and executes C++ code using a TypeScript-based runtime. The system supports key C++ features, including pointer arithmetic, function overloading, and namespace resolution, and emulates memory management via reference-counted JavaScript objects. Integrated within a web-based learning environment, it provides automated feedback, error explanations, and code quality evaluations. The evaluation involved 4582 students in three difficulty levels and feedback from 14 teachers. The results include high system usability scale (SUS) scores (avg. 83.5) and WBLT learning effectiveness scores (avg. 4.58/5). Interpreter performance testing in 65 cases averaged under 10 ms per task, confirming its practical applicability to school curricula. The system supports SCORM and PWA deployment, enabling LMS-independent usage. The work introduces a technical innovation in browser-based C++ execution and a scalable framework for LLM-enhanced programming pedagogy.
Published Wadern : Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025
Type Conference paper
Language English
Publication date 2025
CC license CC license description