Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.03 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.03 KB

Functionly

Simple functional language created as a test case for compiler-framework.

Implementation

Run functionly.Functionly to test.

Result is set of files:

  • tokens.out: all lexical tokens with types and file positions
  • parsing-tree.out.xml: xml with parsing tree
  • ast.out: print out of the abstract syntax tree

Grammar

See Functionly.txt for grammar details

Rules

  • One public function per source file
  • Source file can have many functions
  • Functions are global
  • Variables are bounded to scopes (begin-end)
  • Variable has to be declared before use (appear at right side of assign operation, before being part of an expression)
  • All variables represent numbers

Samples

Sample source files are under src/test/resources/functionly/

License

The code is released under Apache License Version 2.0

Contacts