Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9338100
monkey.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
monkey.js
View Options
/*
Language: Monkey
Description: Monkey2 is an easy to use, cross platform, games oriented programming language from Blitz Research.
Author: Arthur Bikmullin <devolonter@gmail.com>
Website: https://blitzresearch.itch.io/monkey2
*/
function
monkey
(
hljs
)
{
var
NUMBER
=
{
className
:
'number'
,
relevance
:
0
,
variants
:
[
{
begin
:
'[$][a-fA-F0-9]+'
},
hljs
.
NUMBER_MODE
]
};
return
{
name
:
'Monkey'
,
case_insensitive
:
true
,
keywords
:
{
keyword
:
'public private property continue exit extern new try catch '
+
'eachin not abstract final select case default const local global field '
+
'end if then else elseif endif while wend repeat until forever for '
+
'to step next return module inline throw import'
,
built_in
:
'DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil '
+
'Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI'
,
literal
:
'true false null and or shl shr mod'
},
illegal
:
/\/\*/
,
contains
:
[
hljs
.
COMMENT
(
'#rem'
,
'#end'
),
hljs
.
COMMENT
(
"'"
,
'$'
,
{
relevance
:
0
}
),
{
className
:
'function'
,
beginKeywords
:
'function method'
,
end
:
'[(=:]|$'
,
illegal
:
/\n/
,
contains
:
[
hljs
.
UNDERSCORE_TITLE_MODE
]
},
{
className
:
'class'
,
beginKeywords
:
'class interface'
,
end
:
'$'
,
contains
:
[
{
beginKeywords
:
'extends implements'
},
hljs
.
UNDERSCORE_TITLE_MODE
]
},
{
className
:
'built_in'
,
begin
:
'\\b(self|super)\\b'
},
{
className
:
'meta'
,
begin
:
'\\s*#'
,
end
:
'$'
,
keywords
:
{
'meta-keyword'
:
'if else elseif endif end then'
}
},
{
className
:
'meta'
,
begin
:
'^\\s*strict\\b'
},
{
beginKeywords
:
'alias'
,
end
:
'='
,
contains
:
[
hljs
.
UNDERSCORE_TITLE_MODE
]
},
hljs
.
QUOTE_STRING_MODE
,
NUMBER
]
}
}
module
.
exports
=
monkey
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 8:32 AM (8 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3440056
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment