Ciência_Iscte
Publicações
Descrição Detalhada da Publicação
Título Revista
Software and Systems Modeling
Ano (publicação definitiva)
N/A
Língua
Inglês
País
Reino Unido
Mais Informação
Web of Science®
Scopus
Google Scholar
Esta publicação não está indexada no Google Scholar
Esta publicação não está indexada no Overton
Abstract/Resumo
Structured programming embraces fundamental concepts represented in most general-purpose languages: sequence, selection, repetition, assignment, procedures, and recursion. We present Strudel, an executable modeling language for structured programming designed with the needs of educational tools in mind. Instead of relying on generated source-level metadata (language-specific, as in debuggers) or program instrumentation (that transforms executables or ASTs), models of programs are retained at runtime. A model drives a simulation of program execution with direct access to its elements without abstracting details—which are useful for fine-grained error reporting and inspection. We materialized the approach in a meta-programming library where a stack-based execution of programs is simulated in an embeddable virtual machine. By programming against the virtual machine API and the meta-model, third parties can observe a wide range of execution events in detail, such as errors, reachability, state changes, loop iterations, call stack, or memory allocation, to synthesize information about program properties. We developed an educational platform for Java that translates code into Strudel models and uses Strudel’s virtual machine as the runtime environment. The platform is in production as courseware, standing as a proof of viability, and features inspection of program traces to assist experimentation and debugging (probes), white-box tests for verifying algorithmic properties, and generation of questions about code to assess comprehension.
Agradecimentos/Acknowledgements
--
Palavras-chave
Programming education,Modeling,Simulation,Meta-programming
Classificação Fields of Science and Technology
- Matemáticas - Ciências Naturais
- Ciências da Computação e da Informação - Ciências Naturais
Registos de financiamentos
| Referência de financiamento | Entidade Financiadora |
|---|---|
| UIDB/04466/2025 | Fundação para a Ciência e a Tecnologia |
| UIDP/04466/2025 | Fundação para a Ciência e a Tecnologia |
English