Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Grammatical Framework

< >

Grammatical Framework is a grammar language created in 1998.

#977on PLDB 26Years Old 624kRepos

Grammatical Framework (GF) is a programming language for writing grammars of natural languages. GF is capable of parsing and generating texts in several languages simultaneously while working from a language-independent representation of meaning. Grammars written in GF can be compiled into different formats including JavaScript and Java and can be reused as software components. Read more on Wikipedia...


Example from Linguist:
--# -path=.:present -- (c) 2009 Aarne Ranta under LGPL concrete FoodsFin of Foods = FoodsI with (Syntax = SyntaxFin), (LexFoods = LexFoodsFin) ;
Example from Wikipedia:
> parse -lang=Fre "Marie aime Jean" | align_words -lang=Fre,Dut,Lat -view="eog"

Language features

Feature Supported Example Token
Comments
-- A comment
Line Comments
-- A comment
--
Semantic Indentation X

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll