Skip to content

Commit

Permalink
Solving a serious problem caused by "one missing BREAK sentence."
Browse files Browse the repository at this point in the history
  • Loading branch information
bem130 committed Dec 23, 2023
1 parent 4a1ad13 commit 9993d3f
Show file tree
Hide file tree
Showing 5 changed files with 388 additions and 374 deletions.
14 changes: 10 additions & 4 deletions debugger.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@
}
}
function showTable(obj,elm,defaultopen=false) {
elm.innerHTML = ""
if (!(obj instanceof Array)) {
throw `given Object is not Array`;
return false;
}
let index = Object.keys(obj[0])
console.log(index)
//console.log(index)
{
let tableelm = document.createElement("table");
{ // head
Expand All @@ -157,7 +158,7 @@
for (let col of obj) {
let trelm = document.createElement("tr");
for (let name of index) {
console.log(col,name)
//console.log(col,name)
let tdelm = document.createElement("td");
let divelm = document.createElement("div");
showJSON(col[name],divelm,false)
Expand Down Expand Up @@ -195,7 +196,7 @@
console.log(nlpt.ast1)
}
//console.log(nlpt.tokenarr)
console.table(nlpt.tokenarr)
//console.table(nlpt.tokenarr)
makeHighLight_tokenizer(nlpt.tokenarr,"highlight_tokenizer");
makeHighLight_parser(nlpt.tokenarr,"highlight_parser");
showJSON(nlpt.ast1,document.getElementById("AST1"),true);
Expand Down Expand Up @@ -257,10 +258,15 @@
border-radius: 10px;
margin: 5px;
padding: 5px;
position: relative;
}
table>tr>th {
border: rgba(255, 255, 255, 0.25) solid 1px;
background-color: rgba(0, 0, 0, 0.6);
border-radius: 2px;
position: sticky;
top: 5px;
z-index: 1;
}
table>tr>td {
border: rgba(255, 255, 255, 0.2) solid 1px;
Expand All @@ -280,7 +286,7 @@
overflow: scroll;
}
.spread_wide:hover {
width: 500%;
width: 700%;
}
</style>
<style id="highlight_style">
Expand Down
Loading

0 comments on commit 9993d3f

Please sign in to comment.