CLEI Electronic Journal (Jul 2018)

A semantics for while with break, continue and goto

  • Patricia Peratto

DOI
https://doi.org/10.19153/cleiej.9.2.7
Journal volume & issue
Vol. 9, no. 2

Abstract

Read online

This work presents a formal description of a subset of a C-likelanguage in the form of an operational semantics. We give semantics to the following statements (presented in alphabetical order) : assig- nation, break, composition, continue, goto, if, skip and while. The semantics is given by an abstract machine composed by an stack, two counters and three functions. We prove some expected properties of the semantics.