swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.Doc.Keyword

Description

Collect keywords for documentation generation and testing.

Synopsis

Documentation

data EditorType Source #

An enumeration of the editors supported by Swarm (currently, Emacs, VS Code and Vim).

Constructors

Emacs 
VSCode 
Vim 

Formatted keyword lists

keywordsCommands :: EditorType -> Text Source #

Get formatted list of basic functions/commands.

keywordsDirections :: EditorType -> Text Source #

Get formatted list of directions.

operatorNames :: EditorType -> Text Source #

A list of the names of all the operators in the language. These are reflective of how the different editors treat operators, keywords, symbols etc differently. In order to get the list of operators supported by Swarm language irrespective of an editor, map constSyntax operators should suffice.