License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Collect keywords for documentation generation and testing.
Synopsis
- data EditorType
- keywordsCommands :: EditorType -> Text
- keywordsDirections :: EditorType -> Text
- operatorNames :: EditorType -> Text
- builtinFunctionList :: EditorType -> Text
Documentation
data EditorType Source #
An enumeration of the editors supported by Swarm (currently, Emacs, VS Code and Vim).
Instances
Bounded EditorType Source # | |
Defined in Swarm.Doc.Keyword minBound :: EditorType # maxBound :: EditorType # | |
Enum EditorType Source # | |
Defined in Swarm.Doc.Keyword succ :: EditorType -> EditorType # pred :: EditorType -> EditorType # toEnum :: Int -> EditorType # fromEnum :: EditorType -> Int # enumFrom :: EditorType -> [EditorType] # enumFromThen :: EditorType -> EditorType -> [EditorType] # enumFromTo :: EditorType -> EditorType -> [EditorType] # enumFromThenTo :: EditorType -> EditorType -> EditorType -> [EditorType] # | |
Show EditorType Source # | |
Defined in Swarm.Doc.Keyword showsPrec :: Int -> EditorType -> ShowS # show :: EditorType -> String # showList :: [EditorType] -> ShowS # | |
Eq EditorType Source # | |
Defined in Swarm.Doc.Keyword (==) :: EditorType -> EditorType -> Bool # (/=) :: EditorType -> EditorType -> Bool # |
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.
builtinFunctionList :: EditorType -> Text Source #