Skip to content

Instantly share code, notes, and snippets.

View arakov's full-sized avatar

Aleksey Rakov arakov

View GitHub Profile
import extensions;
import system'io;
import system'routines;
public vmToAsm(var s)
{
int pos := s.indexOf(0, ".");
int lastPos := pos;
while (pos != -1)
{
#define system.
#define system'math.
#define system'routines.
#define extensions.
// --- Program ---
#symbol Program =
[
// reading
@arakov
arakov / gist:6be668b516cbb367fd42
Created May 22, 2015 07:27
ELENA: File Searching
#define system.
#define system'text.
#define extensions'text.
#class FileEnumerator
{
#field(type:bytearray)theStruct.
#field theHandle.
#field theSearchPath.
#field theOpen.
@arakov
arakov / gist:0ba71636c01070e5e834
Last active August 29, 2015 14:19
alternative version
#define system.
#define extensions.
#class MyNumber
{
#field theValue.
#constructor new : aValue
[
theValue := aValue.
@arakov
arakov / gist:295bb07c3bddd1e1bb37
Last active August 29, 2015 14:19
ELENA overload operators
#define system.
#define extensions.
#class MyNumber
{
#field theValue.
#constructor new : aValue
[
theValue := aValue.