Figure 1

home1 home2
 Bib
 Algorithms
 Bioinfo
 FP
 Logic
 MML
 Prog.Lang
and the
 Book

 Comp.J.1985

<program> ::= <statement>

<statement>   ::= begin <stat list> end        |
                  if <exp> then <statement> else <statement> |
                  while <exp> do <statement>   |
                  <ident>:=<exp>               |
                  output <exp>                 |
                  <ident>                      |
                  <dec>

<dec>         ::= var <id list>                |
                  proc <ident> = <statement>

<id list>     ::= <ident>  |  <ident>, <id list>
<stat list>   ::= <statement>  |  <statement>; <stat list>

<exp>         ::= <sexp> <relop> <sexp>  |  <sexp>
<sexp>        ::= <sexp> <addop> <term>  |  <term>
<term>        ::= <term> * <opd>         |  <opd>
<opd>         ::= ( <exp> )  |  <ident>  |  <integer>

<relop>       ::= = | <> | < | <= | > | >=
<addop>       ::= + | -
-- Figure 1. Concrete Syntax --

I.e. The concrete syntax of the demonstration, imperative language being defined. Note that it includes procedure definition and call.

Coding Ockham's Razor, L. Allison, Springer

A Practical Introduction to Denotational Semantics, L. Allison, CUP

Linux
 Ubuntu
free op. sys.
OpenOffice
free office suite
The GIMP
~ free photoshop
Firefox
web browser

© L. Allison   http://www.allisons.org/ll/   (or as otherwise indicated),
Faculty of Information Technology (Clayton), Monash University, Australia 3800 (6/'05 was School of Computer Science and Software Engineering, Fac. Info. Tech., Monash University,
was Department of Computer Science, Fac. Comp. & Info. Tech., '89 was Department of Computer Science, Fac. Sci., '68-'71 was Department of Information Science, Fac. Sci.)
Created with "vi (Linux + Solaris)",  charset=iso-8859-1,  fetched Saturday, 20-Apr-2024 07:58:58 AEST.