A Monarch language definition

Hierarchy

  • IMonarchLanguage

Index

Properties

Optional brackets

brackets: IMonarchLanguageBracket[]

for example [['{','}','delimiter.curly']]

Optional defaultToken

defaultToken: string

if no match in the tokenizer assign this token class (default 'source')

Optional ignoreCase

ignoreCase: boolean

is the language case insensitive?

Optional start

start: string

start symbol in the tokenizer (by default the first entry is used)

tokenPostfix

tokenPostfix: string

attach this to every token class (by default '.' + name)

tokenizer

tokenizer: object

map from string to ILanguageRule[]

Type declaration

  • [name: string]: IMonarchLanguageRule[]