Tokenizer build is complete
Completion of tokenizer
After 29 days of building & testing the tokenizer everything is works like expected.
Here is the graph of the ellie library which parser had strugled to page.
We tested the pager with graphviz following code; Any one who wants to test RawPage
output can do so.
var tree = require('./tree.json');
var path = require('path');
var fs = require('fs');
let output = "digraph dependencies {";
output += "\n ratio=fill;";
output += "\n node [style=filled];\n";
for (var i = 0; i < tree.length; i++) {
var item = tree[i];
for (var j = 0; j < item.dependencies.length; j++) {
var dep = item.dependencies[j];
var cr = path.basename(item.path).split(".")[0];
var tg = path.basename(tree.find(x => x.hash == dep.hash).path).split(".")[0];
output += ` ${cr} -> ${tg} [ label= "depends to"]\n`
}
}
output += "}";
fs.writeFileSync("./outputTree.txt", output);
Here is the example output you can test here:
digraph dependencies {
ratio=fill;
node [style=filled];
ellie -> void [ label= "depends to"]
ellie -> string [ label= "depends to"]
ellie -> char [ label= "depends to"]
ellie -> collective [ label= "depends to"]
ellie -> float [ label= "depends to"]
ellie -> bool [ label= "depends to"]
ellie -> cloak [ label= "depends to"]
ellie -> array [ label= "depends to"]
ellie -> vector [ label= "depends to"]
ellie -> function [ label= "depends to"]
ellie -> nullAble [ label= "depends to"]
ellie -> class [ label= "depends to"]
ellie -> int [ label= "depends to"]
ellie -> dyn [ label= "depends to"]
void -> string [ label= "depends to"]
string -> array [ label= "depends to"]
string -> int [ label= "depends to"]
string -> char [ label= "depends to"]
array -> string [ label= "depends to"]
array -> int [ label= "depends to"]
int -> string [ label= "depends to"]
int -> float [ label= "depends to"]
class -> string [ label= "depends to"]
dyn -> string [ label= "depends to"]
}
Created by @ahmtcn123
Created at 4.12.2021-12.56