Screenshot 2023-06-03 at 05.48.53.png

Language Components

General Assertions

Specifications in EOPL consist of assertions of the form (value-of *exp* ρ) = *val,* meaning that the value of expression exp in environment ρ should be val.

Organization

Front-end

No matter what implementation strategy we use, we need a front end that converts programs into abstract syntax trees. The standard approach to building a front end is to use a parser generator. A parser generator is a program that takes as input a lexical specification and a grammar, and produces as output a scanner and parser for them.

Specification

Types of Specifications

What to specify?