Module lexicon

Module lexicon 

Source
Expand description

Module which defines the core functions to create or modify MG lexicons.

Modules§

mdl
Module which defines helper functions to calculate the MDL of MGs according to Ermolaeva, 2021
mutations
This module defines various mutations which allow one to create random minimalist grammars or evolve them in a genetic algorithm

Structs§

Climber
Iterator that climbs up a graph until it reaches the root.
LexemeId
An ID for each lexeme in a grammar
LexicalEntry
A representation of a lexical entry in a grammar.
Lexicon
The struct which represents a specific MG. They can be created by parsing:
LexiconParsingError
Problem parsing a grammar; returns a vector of all [Rich] errors from Chumsky
SemanticLexicon
A lexicon that is paired with semantic interpretations for its leaf nodes.

Enums§

Feature
A possible features of a lexical entry
LexiconError
Indicates that there is something wrong a lexicon
LicenseeOrCategory
Returns either a licensee or category: used only in ParsingError
ParsingError
Indicates a problem with parsing.