Skip to content

Commit a0e556d

Browse files
committed
make site
1 parent 1e9e367 commit a0e556d

File tree

7 files changed

+4374
-2745
lines changed

7 files changed

+4374
-2745
lines changed

examples/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,18 @@ btyacc-t2:
398398
error-only:
399399
$(JISON) --main ./$@.y
400400

401-
parser-to-lexer-communication-test:
401+
parser-to-lexer-communication-test--profiling:
402402
$(JISON) --main -p lr ./$@.jison
403403
node --prof ./output/$@/$@.js
404404
# and now collect the profile info and dump it to a report file:
405405
node --prof-process $$( ls -t isolate-*-v8.log | head -n 1 ) | sed -f ./profile-report-filter.sed > profile.$@.txt
406406
# and make sure the profile report is saved in a unique file which can be compared against other profile runs later on:
407407
cat profile.$@.txt > profile.$@.$$( date +%s%N ).txt
408408

409+
parser-to-lexer-communication-test:
410+
$(JISON) --main -p lr ./$@.jison
411+
node ./output/$@/$@.js
412+
409413
faking-multiple-start-rules:
410414
$(JISON) --main ./$@.jison
411415

@@ -446,7 +450,7 @@ compiled_calc:
446450
# postprocess generated source code:
447451
node ./$@_const_rewrite_postprocess.js ./$@_AST_symbols.json5 output/$@/$@_exec.js
448452
# and run it!
449-
node output/$@/$@_exec.js $@_input.txt
453+
#node output/$@/$@_exec.js $@_input.txt
450454

451455

452456
handlebars-BAD:

examples/benchmark.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ function bench(f, n, minimum_run_time, setup_f, destroy_f) {
192192
for (var i = 0; i < n; i++) {
193193
perf.mark('bench');
194194
for (var j = 0; j < run; j++) {
195+
// 50 x f(): that seems a sort of 'sweet spot' for NodeJS v5, at least for some benchmarks...
195196
f();
196197
f();
197198
f();

tests/.jscs.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"disallowKeywords": ["with"],
3+
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
4+
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
5+
"disallowNewlineBeforeBlockStatements": true,
6+
"disallowPaddingNewlinesInBlocks": true,
7+
"disallowMultipleVarDecl": "exceptUndefined",
8+
"disallowSpacesInNamedFunctionExpression": {
9+
"beforeOpeningRoundBrace": true
10+
},
11+
"disallowSpacesInCallExpression": true,
12+
"disallowQuotedKeysInObjects": true,
13+
"disallowSpaceAfterObjectKeys": true,
14+
"disallowSpaceBeforeComma": true,
15+
"requireBlocksOnNewline": 1,
16+
"requireCommaBeforeLineBreak": true,
17+
"requireSpaceBeforeBlockStatements": true,
18+
"requireSpaceBeforeObjectValues": true,
19+
"requireSpaceBetweenArguments": true,
20+
"requireSpaceAfterComma": true,
21+
"requireSpaceAfterLineComment": true,
22+
"requirePaddingNewLinesInObjects": true,
23+
"requireLineFeedAtFileEnd": true,
24+
"requireLineBreakAfterVariableAssignment": true,
25+
"requireSemicolons": true,
26+
"validateParameterSeparator": ", ",
27+
"requireSpaceAfterBinaryOperators": [",", "+", "-", "/", "%", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
28+
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "case", "return", "try", "catch", "function", "typeof", "with"],
29+
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "%", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
30+
"requireSpaceBeforeKeywords": [
31+
"else",
32+
"while",
33+
"catch"
34+
],
35+
"requireSpacesInForStatement": true,
36+
"requireSpacesInAnonymousFunctionExpression": {
37+
"beforeOpeningRoundBrace": true,
38+
"beforeOpeningCurlyBrace": true
39+
},
40+
"requireSpacesInFunctionDeclaration": {
41+
"beforeOpeningCurlyBrace": true
42+
},
43+
"requireSpacesInFunctionExpression": {
44+
"beforeOpeningCurlyBrace": true
45+
},
46+
"requireSpacesInConditionalExpression": {
47+
"afterTest": true,
48+
"beforeConsequent": true,
49+
"afterConsequent": true,
50+
"beforeAlternate": true
51+
},
52+
"validateLineBreaks": "LF",
53+
"validateQuoteMarks": true
54+
}

tests/.jscsrc

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"disallowKeywords": ["with"],
3+
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
4+
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
5+
"disallowNewlineBeforeBlockStatements": true,
6+
"disallowPaddingNewlinesInBlocks": true,
7+
"disallowMultipleVarDecl": "exceptUndefined",
8+
"disallowSpacesInNamedFunctionExpression": {
9+
"beforeOpeningRoundBrace": true
10+
},
11+
"disallowSpacesInCallExpression": true,
12+
"disallowQuotedKeysInObjects": true,
13+
"disallowSpaceAfterObjectKeys": true,
14+
"disallowSpaceBeforeComma": true,
15+
"requireBlocksOnNewline": 1,
16+
"requireCommaBeforeLineBreak": true,
17+
"requireSpaceBeforeBlockStatements": true,
18+
"requireSpaceBeforeObjectValues": true,
19+
"requireSpaceBetweenArguments": true,
20+
"requireSpaceAfterComma": true,
21+
"requireSpaceAfterLineComment": true,
22+
"requirePaddingNewLinesInObjects": true,
23+
"requireLineFeedAtFileEnd": true,
24+
"requireLineBreakAfterVariableAssignment": true,
25+
"requireSemicolons": true,
26+
"validateParameterSeparator": ", ",
27+
"requireSpaceAfterBinaryOperators": [",", "+", "-", "/", "%", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
28+
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "case", "return", "try", "catch", "function", "typeof", "with"],
29+
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "%", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
30+
"requireSpaceBeforeKeywords": [
31+
"else",
32+
"while",
33+
"catch"
34+
],
35+
"requireSpacesInForStatement": true,
36+
"requireSpacesInAnonymousFunctionExpression": {
37+
"beforeOpeningRoundBrace": true,
38+
"beforeOpeningCurlyBrace": true
39+
},
40+
"requireSpacesInFunctionDeclaration": {
41+
"beforeOpeningCurlyBrace": true
42+
},
43+
"requireSpacesInFunctionExpression": {
44+
"beforeOpeningCurlyBrace": true
45+
},
46+
"requireSpacesInConditionalExpression": {
47+
"afterTest": true,
48+
"beforeConsequent": true,
49+
"afterConsequent": true,
50+
"beforeAlternate": true
51+
},
52+
"validateLineBreaks": "LF",
53+
"validateQuoteMarks": true
54+
}

tests/.jshintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends" : "../.jshintrc",
3+
"quotmark" : true
4+
}

0 commit comments

Comments
 (0)