Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
15,866 additions
and
866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
121 changes: 121 additions & 0 deletions
121
vendor/pygments-main/external/lasso-builtins-generator-9.lasso
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
#!/usr/bin/lasso9 | ||
/* | ||
Builtins Generator for Lasso 9 | ||
This is the shell script that was used to extract Lasso 9's built-in keywords | ||
and generate most of the _lassobuiltins.py file. When run, it creates a file | ||
named "lassobuiltins-9.py" containing the types, traits, and methods of the | ||
currently-installed version of Lasso 9. | ||
A partial list of keywords in Lasso 8 can be generated with this code: | ||
<?LassoScript | ||
local('l8tags' = list); | ||
iterate(tags_list, local('i')); | ||
#l8tags->insert(string_removeleading(#i, -pattern='_global_')); | ||
/iterate; | ||
#l8tags->sort; | ||
iterate(#l8tags, local('i')); | ||
string_lowercase(#i)+"<br>"; | ||
/iterate; | ||
*/ | ||
output("This output statement is required for a complete list of methods.") | ||
local(f) = file("lassobuiltins-9.py") | ||
#f->doWithClose => { | ||
#f->openWrite | ||
#f->writeString('# -*- coding: utf-8 -*- | ||
""" | ||
pygments.lexers._lassobuiltins | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Built-in Lasso types, traits, and methods. | ||
""" | ||
') | ||
lcapi_loadModules | ||
// Load all of the libraries from builtins and lassoserver | ||
// This forces all possible available types and methods to be registered | ||
local(srcs = | ||
tie( | ||
dir(sys_masterHomePath + 'LassoLibraries/builtins/')->eachFilePath, | ||
dir(sys_masterHomePath + 'LassoLibraries/lassoserver/')->eachFilePath | ||
) | ||
) | ||
with topLevelDir in #srcs | ||
where !#topLevelDir->lastComponent->beginsWith('.') | ||
do protect => { | ||
handle_error => { | ||
stdoutnl('Unable to load: ' + #topLevelDir + ' ' + error_msg) | ||
} | ||
library_thread_loader->loadLibrary(#topLevelDir) | ||
stdoutnl('Loaded: ' + #topLevelDir) | ||
} | ||
local( | ||
typesList = list(), | ||
traitsList = list(), | ||
methodsList = list() | ||
) | ||
// unbound methods | ||
with method in sys_listUnboundMethods | ||
where !#method->methodName->asString->endsWith('=') | ||
where #method->methodName->asString->isalpha(1) | ||
where #methodsList !>> #method->methodName->asString | ||
do #methodsList->insert(#method->methodName->asString) | ||
// traits | ||
with trait in sys_listTraits | ||
where !#trait->asString->beginsWith('$') | ||
where #traitsList !>> #trait->asString | ||
do { | ||
#traitsList->insert(#trait->asString) | ||
with tmethod in tie(#trait->getType->provides, #trait->getType->requires) | ||
where !#tmethod->methodName->asString->endsWith('=') | ||
where #tmethod->methodName->asString->isalpha(1) | ||
where #methodsList !>> #tmethod->methodName->asString | ||
do #methodsList->insert(#tmethod->methodName->asString) | ||
} | ||
// types | ||
with type in sys_listTypes | ||
where #typesList !>> #type->asString | ||
do { | ||
#typesList->insert(#type->asString) | ||
with tmethod in #type->getType->listMethods | ||
where !#tmethod->methodName->asString->endsWith('=') | ||
where #tmethod->methodName->asString->isalpha(1) | ||
where #methodsList !>> #tmethod->methodName->asString | ||
do #methodsList->insert(#tmethod->methodName->asString) | ||
} | ||
#f->writeString("BUILTINS = { | ||
'Types': [ | ||
") | ||
with t in #typesList | ||
do #f->writeString(" '"+string_lowercase(#t)+"',\n") | ||
#f->writeString(" ], | ||
'Traits': [ | ||
") | ||
with t in #traitsList | ||
do #f->writeString(" '"+string_lowercase(#t)+"',\n") | ||
#f->writeString(" ], | ||
'Methods': [ | ||
") | ||
with t in #methodsList | ||
do #f->writeString(" '"+string_lowercase(#t)+"',\n") | ||
#f->writeString(" ], | ||
} | ||
") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.