PFL Syntax

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

FP
 PFL (code)
  Syntax
  Examples

Also see:
  λ syntax
PFL.out -- the interpreter, reads a PFL source program from standard input.
[Examples/] -- example PFL programs

processes:
   process1 || process2          p1 and p2 in parallel
   process1 |  process2          choice of either p1 or p2
   action -> process             sequence
   stop                          null process

NB. there is a (typical) restriction that
   `||' below `|', eg. (p1||p2)|p3, is not allowed.

actions:
   channel ? variable            input  action
   channel ! expression          output action

channels:
   let c=chan in ...             `chan' returns a new channel
   output                        standard ouput channel
   input                         standard input channel

Otherwise the non-process part of the language is as for [λ FP].

April 1993

NB.   ->   is the sequencing, "then do" operator, nothing at all to do with function-types or the definition of functions as in Haskell.

[Refs].

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

pfl...
|   choice
|| parallel
-> sequence
? input act
! output act
chan new channel

© 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 Tuesday, 19-Mar-2024 15:01:38 AEDT.