Browsable FL Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/fl/concrete/txl/extracted
Source used for this grammar: Vadim Zaytsev, FL.Txl, 6–7 Jul 2009 [Explore]

Summary

Syntax

program ::=
	fun+
fun ::=
	id id+ "=" expression newline
expression ::=
	expression op expression
	id expression+
	"if" expression "then" expression "else" expression
	"(" expression ")"
	id
	number
op ::=
	"+"
	"-"
	"=="

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []