Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
inventor02 committed Mar 12, 2023
1 parent 1e97778 commit 21e0f34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
31 changes: 6 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,12 @@
# lambda-toy

## Grammar
A variant of the λToy language from [COMP2212 Programming Language Concepts](https://www.southampton.ac.uk/courses/modules/comp2212), based
heavily on lectures and material from Dr Julian Rathke.

```
T ::= Int | Bool | T -> T
## Grammar

E ::= $digits | true | false | E < E | E + E | $varname | if E then E else E | \($varname : T) E | let ($varname : T) = E in E | E E
```
T ::= Int | Bool | T -> T | (T, T)
## Lexemes

- Int
- Bool
- $digits
- true
- false
- <
- +
- some var name?
- if
- then
- else
- \
- (
- )
- :
- let
- in
- =
- ->
E ::= $digits | true | false | (E, E) | E < E | E + E | $varname | if E then E else E | \($varname : T) E | let ($varname : T) = E in E | E E
```
4 changes: 2 additions & 2 deletions lambda-toy.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack

name: lambda-toy
version: 0.1.0.0
version: 1.0.0.0
category: Web
homepage: https://github.com/githubuser/lambda-toy#readme
homepage: https://github.com/inventor02/lambda-toy#readme
author: George Peppard
maintainer: gjp1g21@soton.ac.uk
copyright: 2023 George Peppard
Expand Down

0 comments on commit 21e0f34

Please sign in to comment.