Skip to content

Instantly share code, notes, and snippets.

@GerHobbelt
GerHobbelt / README.md
Created August 25, 2014 11:12
collapsible D3.js force layout + dat.gui for fiddling

xxx

@GerHobbelt
GerHobbelt / README.md
Last active August 29, 2015 14:28
Response to PEGjs question in the mailing list -- big for a response; blog entry size but still lacking context to be able to stand on its own

Note: I'm not native English speaking and don't have the natural language processing jargon down pat, so the 'preceeding' vs. 'proceeding' I assume the PREceeding text before 'x' in 'zzxz' is the leading 'zz' ('history') and the PROceeding text for the same is the trailing 'z', hence 'proceeding text' would be similar to 'look ahead' as it is called in computer language parsing (unambiguous language parsing).

Anyway... I'm sure I don't get everything you say but there's at least one subject which is certainly relevant here:

handling/coping with history (preceeding input) vs. look-ahead (future, incoming, proceeding input)

In your sample grammar and sample 'zzxz' I assume each character is a single token. (Yes, PEG always processes characters as it blends lexer and parser into a single specification language; I'm just sufficiently dinosaur to appreciate the difference between 'character stream' and 'token stream': the token stream is where such nice horrors as left recursion are to be ex

@GerHobbelt
GerHobbelt / .gitignore
Created February 11, 2012 14:46
showcase non-integer pixel sizes reported by FireFox (and how mootools struggles with those)
# Editor backup files
*.bak
*~
@GerHobbelt
GerHobbelt / .gitignore
Created February 20, 2012 04:28
d3.js calendar done as horizontal strip + mouse hover based smooth horizontal scrolling
# Editor backup files
*.bak
*~
@GerHobbelt
GerHobbelt / .gitignore
Created February 22, 2012 09:56
d3.js: high dynamic range in the data where you want it by picking a suitable log() offset
# Editor backup files
*.bak
*~
@GerHobbelt
GerHobbelt / .gitignore
Created April 2, 2012 20:10
show XML and JSON error handling in D3
# Editor backup files
*.bak
*~
@GerHobbelt
GerHobbelt / .gitignore
Created April 12, 2012 12:43
d3.bisect() usage to get Y value for mouse X where x axis is a timestamp/date
# Editor backup files
*.bak
*~
@GerHobbelt
GerHobbelt / .gitignore
Created April 27, 2012 00:35 — forked from mbostock/.block
D3 PJAX (& execute JS loaded through the d3.html() request as well)
# Editor backup files
*.bak
*~
@GerHobbelt
GerHobbelt / .gitignore
Created April 27, 2012 19:05
Force tree transition chaining (incrementally showing nodes and links in a force graph)
# Editor backup files
*.bak
*~
@GerHobbelt
GerHobbelt / .gitignore
Created April 27, 2012 19:35 — forked from mbostock/.block
Chained Transitions
# Editor backup files
*.bak
*~