Skip to content

Commit

Permalink
Added parser traces and supporting html files.
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterOlivier committed Jul 17, 2024
1 parent d5bb0d3 commit 4335d75
Show file tree
Hide file tree
Showing 325 changed files with 44,711 additions and 4 deletions.
4 changes: 0 additions & 4 deletions doc/index.html

This file was deleted.

2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Parser.dot
Parser.svg
1 change: 1 addition & 0 deletions docs/frames/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Parser/
23 changes: 23 additions & 0 deletions docs/frames/Parser-abc/0001.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
digraph Parser {
"Parser"["label"="Parser\nInput: \"a b c $\"\nLocation: 0 ('a')\nStep 1: Expanding"];
"todoLists"["label"="<0> 0 | <1> 1 | <2> 2 | <3> 3 | <4> 4 | <5> 5 | <6> 6 | <7> 7 | <8> 8 | <9> 9 | <10> 10 | <11> 11 | <12> 12 | <13> 13 | <14> 14 | <15> 15", "shape"="record"];
"Parser" -> "todoLists"["label"="todo lists"];
"-1"["label"="NonTerminal: S\n.0@-1"];
"stacksToExpand":"0" -> "-1";
"stacksToExpand"["label"="<0> 0", "shape"="record", "color"="red"];
"Parser" -> "stacksToExpand"["label"="stacks to expand"];
"terminalsToReduce"["label"="", "shape"="record"];
"Parser" -> "terminalsToReduce"["label"="terminals to reduce"];
"nonTerminalsToReduce"["label"="", "shape"="record"];
"Parser" -> "nonTerminalsToReduce"["label"="non-terminals to reduce"];
"unexpandableNodes"["label"="", "shape"="record"];
"unmatchableLeafNodes"["label"="", "shape"="record"];
"unmatchableMidProductionNodes"["shape"="record", "label"=""];
"filteredNodes"["label"="", "shape"="record"];
"error"["label"="Errors"];
"Parser" -> "error"["label"="error tracking"];
"error" -> "unexpandableNodes"["label"="unexpandable"];
"error" -> "unmatchableLeafNodes"["label"="unmatchable leafs"];
"error" -> "unmatchableMidProductionNodes"["label"="unmatchable mid-prod"];
"error" -> "filteredNodes"["label"="filtered"];
}
182 changes: 182 additions & 0 deletions docs/frames/Parser-abc/0001.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions docs/frames/Parser-abc/0002.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
digraph Parser {
"Parser"["label"="Parser\nInput: \"a b c $\"\nLocation: 1 (' ')\nStep 2: Reducing terminals"];
"todo-1"["label"="<0> 0", "shape"="record"];
"55"["label"="Literal: \n.0@0"];
"35"["label"="NonTerminal: ABC\n.0@0"];
"-1"["label"="NonTerminal: S\n.0@-1"];
"35" -> "-1";
"55" -> "35";
"todo-1":"0":sw -> "55"["label"="Stack"];
"723689932"["shape"="octagon", "label"="Literal \"a\""];
"todo-1":"0":se -> "723689932"["label"="Node"];
"todoLists":"1" -> "todo-1";
"todoLists"["label"="<0> 0 | <1> 1 | <2> 2 | <3> 3 | <4> 4 | <5> 5 | <6> 6 | <7> 7 | <8> 8 | <9> 9 | <10> 10 | <11> 11 | <12> 12 | <13> 13 | <14> 14 | <15> 15", "shape"="record"];
"Parser" -> "todoLists"["label"="todo lists"];
"stacksToExpand"["label"="", "shape"="record"];
"Parser" -> "stacksToExpand"["label"="stacks to expand"];
"terminalsToReduce"["label"="<0> 0", "shape"="record", "color"="red"];
"terminalsToReduce":"0":sw -> "55"["label"="Stack"];
"723689932"["shape"="octagon", "label"="Literal \"a\""];
"terminalsToReduce":"0":se -> "723689932"["label"="Node"];
"Parser" -> "terminalsToReduce"["label"="terminals to reduce"];
"nonTerminalsToReduce"["label"="", "shape"="record"];
"Parser" -> "nonTerminalsToReduce"["label"="non-terminals to reduce"];
"unexpandableNodes"["label"="", "shape"="record"];
"unmatchableLeafNodes"["label"="", "shape"="record"];
"unmatchableMidProductionNodes"["shape"="record", "label"=""];
"filteredNodes"["label"="", "shape"="record"];
"error"["label"="Errors"];
"Parser" -> "error"["label"="error tracking"];
"error" -> "unexpandableNodes"["label"="unexpandable"];
"error" -> "unmatchableLeafNodes"["label"="unmatchable leafs"];
"error" -> "unmatchableMidProductionNodes"["label"="unmatchable mid-prod"];
"error" -> "filteredNodes"["label"="filtered"];
}
Loading

0 comments on commit 4335d75

Please sign in to comment.