This file contains hidden or 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
#ifndef __GRAMMAR_H__ | |
#define __GRAMMAR_H__ | |
#include "std_extension.h" | |
#include <pegtl.hh> | |
namespace Grammar | |
{ | |
struct function_call; | |
struct data; |
This file contains hidden or 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
#!/usr/bin/env jaeger | |
# directive that tells compiler | |
# what function from which native module we will use. | |
/use roar from "jaeger_std"/ | |
/use waitForMilliseconds from "jaeger_std"/ | |
#/jaegerify "file_open(path:*i8, mode:*i8):*i32" from "IO"/ | |
# directive that tells compiler which function is program entry point. | |
/start main/ |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
namespace WinnerRandomSelector | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains hidden or 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
#!/usr/bin/env i4s | |
#intuicio 4.0; | |
#stack 8k; | |
#memory 16k; | |
#entry @Main; | |
#pointersize 32; | |
#import from [IO:print] routine print(format:*i8, ...):; |
This file contains hidden or 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
class Ass | |
{ | |
Ass(v:int) { _value = v; } | |
~Ass() { _value = 0; } | |
get():int { return _value; } | |
set(v:int):void { _value = v; } | |
property:int | |
{ |
This file contains hidden or 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
varying vec2 vUv0; | |
uniform vec4 uTint; | |
void main(void) | |
{ | |
float f = step(dot(vUv0.xy), 1.0); | |
gl_FragColor = vec4(uTint.rgb, uTint.a * f); | |
} |
This file contains hidden or 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
{ | |
"properties": { | |
"value": { "editorId" : "number" }, | |
"text": { "editorId" : "string" }, | |
"on": { "editorId" : "boolean" } | |
} | |
} |
This file contains hidden or 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
var assets, | |
assetRef, | |
assetRefClone, | |
assetRefs; | |
// custom asset class that inherit from AssetManager.Asset class. | |
function TextAsset(manager, id, config){ | |
AssetManager.Asset.call(this, manager, id, config); |
This file contains hidden or 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
#ifndef __GRAMMAR_H__ | |
#define __GRAMMAR_H__ | |
#include "std_extension.h" | |
#include <pegtl.hh> | |
namespace IntuicioPlusPlus | |
{ | |
namespace Grammar | |
{ |
This file contains hidden or 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
!intuicio // every Intuicio program must start with header. | |
!stack 128 | |
!registers-i 8 | |
!data bytes txtCountObj "obj references count: ", 0 | |
!data bytes txtCountCpy "cpy references count: ", 0 | |
!data bytes txtValueObj "obj value: ", 0 | |
!data bytes txtValueCpy "cpy value: ", 0 | |
!data bytes txtCountA "ManagedClass.a references count: ", 0 |