Merge pull request #1227 from github/1178-update

1178 update
This commit is contained in:
Arfon Smith
2014-05-30 16:25:47 -05:00
6 changed files with 146 additions and 37 deletions

View File

@@ -1063,6 +1063,7 @@ JavaScript:
- ._js - ._js
- .bones - .bones
- .es6 - .es6
- .frag
- .jake - .jake
- .jsfl - .jsfl
- .jsm - .jsm

View File

@@ -167,6 +167,7 @@
], ],
"GLSL": [ "GLSL": [
".fp", ".fp",
".frag",
".glsl" ".glsl"
], ],
"Gnuplot": [ "Gnuplot": [
@@ -230,6 +231,7 @@
".java" ".java"
], ],
"JavaScript": [ "JavaScript": [
".frag",
".js", ".js",
".script!" ".script!"
], ],
@@ -710,8 +712,8 @@
".gemrc" ".gemrc"
] ]
}, },
"tokens_total": 609672, "tokens_total": 609975,
"languages_total": 746, "languages_total": 750,
"tokens": { "tokens": {
"ABAP": { "ABAP": {
"*/**": 1, "*/**": 1,
@@ -23546,14 +23548,14 @@
"////": 4, "////": 4,
"High": 1, "High": 1,
"quality": 2, "quality": 2,
"(": 386, "(": 435,
"Some": 1, "Some": 1,
"browsers": 1, "browsers": 1,
"may": 1, "may": 1,
"freeze": 1, "freeze": 1,
"or": 1, "or": 1,
"crash": 1, "crash": 1,
")": 386, ")": 435,
"//#define": 10, "//#define": 10,
"HIGHQUALITY": 2, "HIGHQUALITY": 2,
"Medium": 1, "Medium": 1,
@@ -23580,7 +23582,7 @@
"RAGGED_LEAVES": 5, "RAGGED_LEAVES": 5,
"DETAILED_NOISE": 3, "DETAILED_NOISE": 3,
"LIGHT_AA": 3, "LIGHT_AA": 3,
"//": 36, "//": 38,
"sample": 2, "sample": 2,
"SSAA": 2, "SSAA": 2,
"HEAVY_AA": 2, "HEAVY_AA": 2,
@@ -23590,12 +23592,12 @@
"Configurations": 1, "Configurations": 1,
"#ifdef": 14, "#ifdef": 14,
"#endif": 14, "#endif": 14,
"const": 18, "const": 19,
"float": 103, "float": 105,
"eps": 5, "eps": 5,
"e": 4, "e": 4,
"-": 108, "-": 108,
";": 353, ";": 383,
"PI": 3, "PI": 3,
"vec3": 165, "vec3": 165,
"sunDir": 5, "sunDir": 5,
@@ -23614,13 +23616,13 @@
"tonemapping": 1, "tonemapping": 1,
"mod289": 4, "mod289": 4,
"x": 11, "x": 11,
"{": 61, "{": 82,
"return": 47, "return": 47,
"floor": 8, "floor": 8,
"*": 115, "*": 115,
"/": 24, "/": 24,
"}": 61, "}": 82,
"vec4": 72, "vec4": 73,
"permute": 4, "permute": 4,
"x*34.0": 1, "x*34.0": 1,
"+": 108, "+": 108,
@@ -23821,7 +23823,7 @@
"shadow": 4, "shadow": 4,
"taken": 1, "taken": 1,
"for": 7, "for": 7,
"int": 7, "int": 8,
"rayDir*t": 2, "rayDir*t": 2,
"res": 6, "res": 6,
"res.x": 3, "res.x": 3,
@@ -23924,8 +23926,8 @@
"iResolution.x/iResolution.y*0.5": 1, "iResolution.x/iResolution.y*0.5": 1,
"rd.x": 1, "rd.x": 1,
"rd.y": 1, "rd.y": 1,
"void": 5, "void": 31,
"main": 3, "main": 5,
"gl_FragCoord.xy": 7, "gl_FragCoord.xy": 7,
"*0.25": 4, "*0.25": 4,
"*0.5": 1, "*0.5": 1,
@@ -23937,7 +23939,38 @@
"col*exposure": 1, "col*exposure": 1,
"x*": 2, "x*": 2,
".5": 1, ".5": 1,
"gl_FragColor": 2, "gl_FragColor": 3,
"#version": 2,
"core": 1,
"cbar": 2,
"cfoo": 1,
"CB": 2,
"CD": 2,
"CA": 1,
"CC": 1,
"CBT": 5,
"CDT": 3,
"CAT": 1,
"CCT": 1,
"norA": 4,
"norB": 3,
"norC": 1,
"norD": 1,
"norE": 4,
"norF": 1,
"norG": 1,
"norH": 1,
"norI": 1,
"norcA": 2,
"norcB": 3,
"norcC": 2,
"norcD": 2,
"head": 1,
"of": 1,
"cycle": 2,
"norcE": 1,
"lead": 1,
"into": 1,
"NUM_LIGHTS": 4, "NUM_LIGHTS": 4,
"AMBIENT": 2, "AMBIENT": 2,
"MAX_DIST": 3, "MAX_DIST": 3,
@@ -23946,7 +23979,7 @@
"lightColor": 3, "lightColor": 3,
"[": 29, "[": 29,
"]": 29, "]": 29,
"varying": 3, "varying": 4,
"fragmentNormal": 2, "fragmentNormal": 2,
"cameraVector": 2, "cameraVector": 2,
"lightVector": 4, "lightVector": 4,
@@ -23974,7 +24007,11 @@
"specularDot": 2, "specularDot": 2,
"sample.rgb": 1, "sample.rgb": 1,
"sample.a": 1, "sample.a": 1,
"#version": 1, "static": 1,
"char*": 1,
"SimpleFragmentShader": 1,
"STRINGIFY": 1,
"FrontColor": 2,
"kCoeff": 2, "kCoeff": 2,
"kCube": 2, "kCube": 2,
"uShift": 3, "uShift": 3,
@@ -26661,15 +26698,15 @@
".internalBuildGeneratedFileFrom": 1 ".internalBuildGeneratedFileFrom": 1
}, },
"JavaScript": { "JavaScript": {
"function": 1210, "function": 1212,
"(": 8513, "(": 8518,
")": 8521, ")": 8526,
"{": 2736, "{": 2738,
";": 4052, ";": 4056,
"//": 410, "//": 410,
"jshint": 1, "jshint": 1,
"_": 9, "_": 9,
"var": 910, "var": 911,
"Modal": 2, "Modal": 2,
"content": 5, "content": 5,
"options": 56, "options": 56,
@@ -26679,15 +26716,15 @@
".delegate": 2, ".delegate": 2,
".proxy": 1, ".proxy": 1,
"this.hide": 1, "this.hide": 1,
"this": 577, "this": 578,
"}": 2712, "}": 2714,
"Modal.prototype": 1, "Modal.prototype": 1,
"constructor": 8, "constructor": 8,
"toggle": 10, "toggle": 10,
"return": 944, "return": 945,
"[": 1459, "[": 1461,
"this.isShown": 3, "this.isShown": 3,
"]": 1456, "]": 1458,
"show": 10, "show": 10,
"that": 33, "that": 33,
"e": 663, "e": 663,
@@ -26715,7 +26752,7 @@
"hide": 8, "hide": 8,
"body": 22, "body": 22,
"modal": 4, "modal": 4,
"-": 705, "-": 706,
"open": 2, "open": 2,
"fade": 4, "fade": 4,
"hidden": 12, "hidden": 12,
@@ -27375,6 +27412,12 @@
"_results.push": 2, "_results.push": 2,
"math.cube": 2, "math.cube": 2,
".slice": 6, ".slice": 6,
"window": 18,
"angular": 1,
"Array.prototype.last": 1,
"this.length": 41,
"app": 3,
"angular.module": 1,
"A": 24, "A": 24,
"w": 110, "w": 110,
"ma": 3, "ma": 3,
@@ -27513,7 +27556,6 @@
"c.prototype": 1, "c.prototype": 1,
"init": 7, "init": 7,
"this.context": 17, "this.context": 17,
"this.length": 40,
"s.body": 2, "s.body": 2,
"this.selector": 16, "this.selector": 16,
"Ta.exec": 1, "Ta.exec": 1,
@@ -28074,7 +28116,6 @@
"scrollTo": 1, "scrollTo": 1,
"CSS1Compat": 1, "CSS1Compat": 1,
"client": 3, "client": 3,
"window": 16,
"document": 26, "document": 26,
"window.document": 2, "window.document": 2,
"navigator": 3, "navigator": 3,
@@ -29728,7 +29769,6 @@
"week": 1, "week": 1,
"bK": 1, "bK": 1,
"about": 1, "about": 1,
"app": 2,
"storage": 1, "storage": 1,
"extension": 1, "extension": 1,
"widget": 1, "widget": 1,
@@ -30907,6 +30947,7 @@
"js": 1, "js": 1,
"classes.join": 1, "classes.join": 1,
"this.document": 1, "this.document": 1,
"window.angular": 1,
"PEG.parser": 1, "PEG.parser": 1,
"quote": 3, "quote": 3,
"result0": 264, "result0": 264,
@@ -65817,7 +65858,7 @@
"Game Maker Language": 13310, "Game Maker Language": 13310,
"GAP": 9944, "GAP": 9944,
"GAS": 133, "GAS": 133,
"GLSL": 3766, "GLSL": 4033,
"Gnuplot": 1023, "Gnuplot": 1023,
"Gosu": 410, "Gosu": 410,
"Grammatical Framework": 10607, "Grammatical Framework": 10607,
@@ -65835,7 +65876,7 @@
"Ioke": 2, "Ioke": 2,
"Jade": 3, "Jade": 3,
"Java": 8987, "Java": 8987,
"JavaScript": 76934, "JavaScript": 76970,
"JSON": 183, "JSON": 183,
"JSON5": 57, "JSON5": 57,
"JSONiq": 151, "JSONiq": 151,
@@ -65999,7 +66040,7 @@
"Game Maker Language": 13, "Game Maker Language": 13,
"GAP": 7, "GAP": 7,
"GAS": 1, "GAS": 1,
"GLSL": 3, "GLSL": 5,
"Gnuplot": 6, "Gnuplot": 6,
"Gosu": 4, "Gosu": 4,
"Grammatical Framework": 41, "Grammatical Framework": 41,
@@ -66017,7 +66058,7 @@
"Ioke": 1, "Ioke": 1,
"Jade": 1, "Jade": 1,
"Java": 6, "Java": 6,
"JavaScript": 20, "JavaScript": 22,
"JSON": 4, "JSON": 4,
"JSON5": 2, "JSON5": 2,
"JSONiq": 2, "JSONiq": 2,
@@ -66134,5 +66175,5 @@
"YAML": 2, "YAML": 2,
"Zephir": 2 "Zephir": 2
}, },
"md5": "e48a5efc06906356916c94d4f2344863" "md5": "ef1795e3585ee02f479767c6a071eb2f"
} }

View File

@@ -0,0 +1,9 @@
static const char* SimpleFragmentShader = STRINGIFY(
varying vec4 FrontColor;
void main(void)
{
gl_FragColor = FrontColor;
}
);

View File

@@ -0,0 +1,48 @@
#version 330 core
// cross-unit recursion
void main() {}
// two-level recursion
float cbar(int);
void cfoo(float)
{
cbar(2);
}
// four-level, out of order
void CB();
void CD();
void CA() { CB(); }
void CC() { CD(); }
// high degree
void CBT();
void CDT();
void CAT() { CBT(); CBT(); CBT(); }
void CCT() { CDT(); CDT(); CBT(); }
// not recursive
void norA() {}
void norB() { norA(); }
void norC() { norA(); }
void norD() { norA(); }
void norE() { norB(); }
void norF() { norB(); }
void norG() { norE(); }
void norH() { norE(); }
void norI() { norE(); }
// not recursive, but with a call leading into a cycle if ignoring direction
void norcA() { }
void norcB() { norcA(); }
void norcC() { norcB(); }
void norcD() { norcC(); norcB(); } // head of cycle
void norcE() { norcD(); } // lead into cycle

View File

@@ -0,0 +1,7 @@
(function(window, angular) {
Array.prototype.last = function() {
return this[this.length-1];
};
var app = angular.module('ConwayGameOfLife', []);

View File

@@ -0,0 +1,3 @@
})(window, window.angular);