ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/*
* This module only exports 'compile' which compiles a JSON language definition
* into a typed and checked ILexer definition.
*/
import { isString } from '../../../../base/common/types.js';
import * as monarchCommon from './monarchCommon.js';
import { IMonarchLanguage, IMonarchLanguageBracket } from './monarchTypes.js';
/*
* Type helpers
*
* Note: this is just for sanity checks on the JSON description which is
* helpful for the programmer. No checks are done anymore once the lexer is
* already 'compiled and checked'.
*
*/
function isArrayOf(elemType: (x: any) => boolean, obj: any): boolean {
if (!obj)
obj
el obj
el
prop defValue
prop
prop
defValue
prop defValue
prop
prop
defValue
array name
result
e array
resulte
result
arr caseInsensitive str
caseInsensitive
arr arr x x
hash arr
caseInsensitive
word
hashword hashword
word
hashword hashword
lexer monarchCommonILexerMin str handleSn RegExp DynamicRegExp RegExp
lexer monarchCommonILexerMin str handleSn RegExp DynamicRegExp
str str
n
hadExpansion
hadExpansion
str str s attr
hadExpansion
sub
lexerattr
sub lexerattr
lexerattr lexerattr
sub lexerattrsource
lexerattr
monarchCommonlexer attr str
monarchCommonlexer attr str
monarchCommonsub sub
n
hadExpansion n
str str
flags lexerignoreCase lexerunicode
handleSn
match str
match
lastState
lastRegEx RegExp
state
lastRegEx lastState state
lastRegEx
lastState state
lastRegEx monarchCommonlexer str state flags
lastRegEx
str flags
id matches state num
num
id
num matcheslength
matchesnum
num
num num
parts state
partsstate
num partslength
partsnum
lexer monarchCommonILexerMin ruleName tkey val monarchCommonFuzzyAction monarchCommonIBranch
scrut
oppat tkey
matches tkey
matches
matches
scrut matches
matches
scrut scrut
oppat matches
op
pat oppat
oppat oppatlength
op
pat
pat
op
matches oppat
matches
op matches
pat matches
s id matches state eos
op op pat
inWords pat lexerignoreCase
s op s s
op op
words lexerpat
words
monarchCommonlexer pat ruleName
elem elem words
monarchCommonlexer pat ruleName
inWords words lexerignoreCase
s op s s
op op
pat
re lexer pat
s op res res
s id matches state
re lexer monarchCommonlexer pat id matches state
res
pat
patx monarchCommonlexer pat
s op s patx s patx
patx monarchCommonlexer pat
s id matches state eos
patexp monarchCommonlexer patx id matches state
op s patexp s patexp
scrut
name tkey value val id matches state eos
id id matches state eos
name tkey value val id matches state eos
scrutinee id matches state scrut
scrutinee scrutinee id matches state eos
lexer monarchCommonILexerMin ruleName action monarchCommonFuzzyAction
action
token
action
action
actiontoken actiontoken
actiontoken
monarchCommonlexer ruleName
newAction monarchCommonIAction token actiontoken
actiontoken
newActiontokenSubst
actionbracket
actionbracket
newActionbracket monarchCommonMonarchBracketOpen
actionbracket
newActionbracket monarchCommonMonarchBracketClose
monarchCommonlexer ruleName
actionnext
actionnext
monarchCommonlexer ruleName
next actionnext
next
next
next next
next
monarchCommonlexer monarchCommonlexer next
monarchCommonlexer actionnext ruleName
newActionnext next
actiongoBack
newActiongoBack actiongoBack
actionswitchTo
newActionswitchTo actionswitchTo
actionlog
newActionlog actionlog
actionnextEmbedded
newActionnextEmbedded actionnextEmbedded
lexerusesEmbedded
newAction
action
results monarchCommonFuzzyAction
i len actionlength i len i
resultsi lexer ruleName actioni
group results
actioncases
cases monarchCommonIBranch
hasEmbeddedEndInCases
tkey actioncases
actioncasestkey
val lexer ruleName actioncasestkey
tkey tkey tkey
cases test value val name tkey
tkey
cases id matches state eos eos value val name tkey
caseslexer ruleName tkey val
hasEmbeddedEndInCases
hasEmbeddedEndInCases val valhasEmbeddedEndInCases valnextEmbedded
def lexerdefaultToken
hasEmbeddedEndInCases
id matches state eos
_case cases
didmatch _casetest _caseid matches state eos
didmatch
_casevalue
def
monarchCommonlexer ruleName
state RegExp
IRule
regex RegExp DynamicRegExp
action monarchCommonFuzzyAction token
matchOnlyAtLineStart
name
name
name name
lexer monarchCommonILexerMin re RegExp
sregex
re
sregex re
re
sregex resource
monarchCommonlexer name
matchOnlyAtLineStart sregexlength sregex
name name sregex
regex lexer matchOnlyAtLineStart sregex sregex
lexer monarchCommonILexerMin act monarchCommonIAction
action lexer name act
state RegExp
regex
regex
state
languageId json IMonarchLanguage monarchCommonILexer
json json
lexer monarchCommonILexer
languageId languageId
includeLF jsonincludeLF
noThrow
maxStack
start jsonstart jsonstart
ignoreCase jsonignoreCase
unicode jsonunicode
tokenPostfix jsontokenPostfix languageId
defaultToken jsondefaultToken
usesEmbedded
stateNames
tokenizer
brackets
lexerMin monarchCommonILexerMin json
lexerMinlanguageId languageId
lexerMinincludeLF lexerincludeLF
lexerMinignoreCase lexerignoreCase
lexerMinunicode lexerunicode
lexerMinnoThrow lexernoThrow
lexerMinusesEmbedded lexerusesEmbedded
lexerMinstateNames jsontokenizer
lexerMindefaultToken lexerdefaultToken
state newrules monarchCommonIRule rules
rule rules
include ruleinclude
include
include
monarchCommonlexer state
include
include include
jsontokenizerinclude
monarchCommonlexer include state
state include newrules jsontokenizerinclude
newrule state
rule rulelength rulelength
newrulelexerMin rule
rulelength
rule
newrulelexerMin token rule next rule
rule
rule1 rule
rule1next rule
newrulelexerMin rule1
monarchCommonlexer state
newrulelexerMin rule
ruleregex
monarchCommonlexer state
rulename
rulename
newrulename rulename
rulematchOnlyAtStart
newrulematchOnlyAtLineStart rulematchOnlyAtLineStart
newrulelexerMin ruleregex
newrulelexerMin ruleaction
newrulesnewrule
jsontokenizer jsontokenizer
monarchCommonlexer
lexertokenizer
key jsontokenizer
jsontokenizerkey
lexerstart
lexerstart key
rules jsontokenizerkey
lexertokenizerkey
key lexertokenizerkey rules
lexerusesEmbedded lexerMinusesEmbedded
jsonbrackets
jsonbrackets
monarchCommonlexer
jsonbrackets
open close token
open close token
open close token
open close token
brackets IMonarchLanguageBracket
el jsonbrackets
desc el
desc desc desclength
desc token desc open desc close desc
descopen descclose
monarchCommonlexer descopen
descopen desctoken descclose
brackets
token desctoken lexertokenPostfix
open monarchCommonlexer descopen
close monarchCommonlexer descclose
monarchCommonlexer
lexerbrackets brackets
lexernoThrow
lexer