Initial commit
This commit is contained in:
8
node_modules/graphlib-dot/lib/read-one.js
generated
vendored
Normal file
8
node_modules/graphlib-dot/lib/read-one.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
var grammar = require("./dot-grammar"),
|
||||
buildGraph = require("./build-graph");
|
||||
|
||||
module.exports = function readOne(str) {
|
||||
var parseTree = grammar.parse(str, { startRule: "graphStmt" });
|
||||
return buildGraph(parseTree);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user