Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
(phixonline)-->
|
||||
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
|
||||
<span style="color: #008080;">if</span> <span style="color: #000000;">name</span><span style="color: #0000FF;">=</span><span style="color: #008000;">"Pete"</span> <span style="color: #008080;">then</span>
|
||||
<span style="color: #000080;font-style:italic;">-- do something</span>
|
||||
<span style="color: #008080;">elsif</span> <span style="color: #000000;">age</span><span style="color: #0000FF;">></span><span style="color: #000000;">50</span> <span style="color: #008080;">then</span>
|
||||
<span style="color: #000080;font-style:italic;">-- do something</span>
|
||||
<span style="color: #008080;">elsif</span> <span style="color: #000000;">age</span><span style="color: #0000FF;"><</span><span style="color: #000000;">20</span> <span style="color: #008080;">then</span>
|
||||
<span style="color: #000080;font-style:italic;">-- do something</span>
|
||||
<span style="color: #008080;">else</span>
|
||||
<span style="color: #000080;font-style:italic;">-- do something</span>
|
||||
<span style="color: #008080;">end</span> <span style="color: #008080;">if</span>
|
||||
<!--
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
-->
|
||||
<span style="color: #000000;">somevar</span> <span style="color: #0000FF;">=</span> <span style="color: #008080;">iff<span style="color: #0000FF;">(<span style="color: #000000;">flag<span style="color: #0000FF;">?<span style="color: #000000;">true_expr<span style="color: #0000FF;">:<span style="color: #000000;">false_expr<span style="color: #0000FF;">)
|
||||
<!--
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
-->
|
||||
<span style="color: #008080;">constant</span> <span style="color: #000000;">DEBUG<span style="color: #0000FF;">=<span style="color: #004600;">false</span>
|
||||
<span style="color: #008080;">if</span> <span style="color: #000000;">DEBUG</span> <span style="color: #008080;">then</span>
|
||||
<span style="color: #7060A8;">puts<span style="color: #0000FF;">(<span style="color: #000000;">1<span style="color: #0000FF;">,<span style="color: #008000;">"debug is on\n"<span style="color: #0000FF;">)</span>
|
||||
<span style="color: #008080;">end</span> <span style="color: #008080;">if</span>
|
||||
<span style="color: #008080;">if</span> <span style="color: #7060A8;">platform<span style="color: #0000FF;">(<span style="color: #0000FF;">)<span style="color: #0000FF;">=<span style="color: #000000;">WINDOWS</span> <span style="color: #008080;">then</span>
|
||||
<span style="color: #7060A8;">puts<span style="color: #0000FF;">(<span style="color: #000000;">1<span style="color: #0000FF;">,<span style="color: #008000;">"this is windows\n"<span style="color: #0000FF;">)</span>
|
||||
<span style="color: #008080;">elsif</span> <span style="color: #7060A8;">platform<span style="color: #0000FF;">(<span style="color: #0000FF;">)<span style="color: #0000FF;">=<span style="color: #000000;">LINUX</span> <span style="color: #008080;">then</span>
|
||||
<span style="color: #7060A8;">puts<span style="color: #0000FF;">(<span style="color: #000000;">1<span style="color: #0000FF;">,<span style="color: #008000;">"this is linux\n"<span style="color: #0000FF;">)</span>
|
||||
<span style="color: #008080;">end</span> <span style="color: #008080;">if
|
||||
<!--
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
-->
|
||||
<span style="color: #008080;">switch</span> <span style="color: #000000;">v</span> <span style="color: #000080;font-style:italic;">/*with fallthrough*/</span> <span style="color: #008080;">do</span>
|
||||
<span style="color: #008080;">case</span> <span style="color: #000000;">1<span style="color: #0000FF;">,<span style="color: #000000;">2<span style="color: #0000FF;">:</span>
|
||||
<span style="color: #000080;font-style:italic;">-- do something</span>
|
||||
<span style="color: #008080;">case</span> <span style="color: #000000;">3</span> <span style="color: #008080;">then</span>
|
||||
<span style="color: #000080;font-style:italic;">-- do something</span>
|
||||
<span style="color: #008080;">fallthrough</span>
|
||||
<span style="color: #008080;">case</span> <span style="color: #000000;">4<span style="color: #0000FF;">:</span>
|
||||
<span style="color: #000080;font-style:italic;">-- do something</span>
|
||||
<span style="color: #008080;">break</span>
|
||||
<span style="color: #008080;">default<span style="color: #0000FF;">:</span>
|
||||
<span style="color: #000080;font-style:italic;">-- do something</span>
|
||||
<span style="color: #008080;">end</span> <span style="color: #008080;">switch
|
||||
<!--
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
without js -- (but maybe, at some point, and obviously that is as custom verbatim JavaScript code instead of assembly code)
|
||||
#ilASM{
|
||||
[32]
|
||||
mov eax,[var]
|
||||
[64]
|
||||
mov rax,[var]
|
||||
[PE32]
|
||||
push eax -- uExitCode
|
||||
call "kernel32.dll","ExitProcess"
|
||||
[PE64]
|
||||
mov rcx,rax -- uExitCode
|
||||
call "kernel32.dll","ExitProcess"
|
||||
[ELF32]
|
||||
mov ebx,eax -- error_code (p1)
|
||||
mov eax,1 -- sys_exit(ebx=int error_code)
|
||||
int 0x80
|
||||
-- xor ebx,ebx -- (common requirement after int 0x80)
|
||||
[ELF64]
|
||||
mov rdi,rax -- error_code (p1)
|
||||
mov rax,60 -- sys_exit(rdi=int error_code)
|
||||
syscall
|
||||
[]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue