#918 Removed som logging

This commit is contained in:
knsv
2019-09-01 00:45:24 -07:00
parent 699bd61045
commit 5610185050
2 changed files with 3 additions and 4 deletions

View File

@@ -38,7 +38,6 @@ const sanitize = text => {
* @param classes * @param classes
*/ */
export const addVertex = function (_id, text, type, style, classes) { export const addVertex = function (_id, text, type, style, classes) {
console.log('called with',_id);
let txt let txt
let id = _id let id = _id
if (typeof id === 'undefined') { if (typeof id === 'undefined') {

View File

@@ -29,7 +29,7 @@
"BT" return 'DIR'; "BT" return 'DIR';
"TD" return 'DIR'; "TD" return 'DIR';
"BR" return 'DIR'; "BR" return 'DIR';
[0-9]+ { console.log('got NUM'); return 'NUM';} [0-9]+ { return 'NUM';}
\# return 'BRKT'; \# return 'BRKT';
":::" return 'STYLE_SEPARATOR'; ":::" return 'STYLE_SEPARATOR';
":" return 'COLON'; ":" return 'COLON';
@@ -280,11 +280,11 @@ separator: NEWLINE | SEMI | EOF ;
// ; // ;
verticeStatement: verticeStatement link node { yy.addLink($1[0],$3[0],$2); $$ = $3.concat($1) } verticeStatement: verticeStatement link node { yy.addLink($1[0],$3[0],$2); $$ = $3.concat($1) }
|node { console.log('A node', $1);$$ = $1 } |node { $$ = $1 }
; ;
node: vertex node: vertex
{ console.log('A vertex', $1);$$ = [$1];} { $$ = [$1];}
| vertex STYLE_SEPARATOR idString | vertex STYLE_SEPARATOR idString
{$$ = [$1];yy.setClass($1,$3)} {$$ = [$1];yy.setClass($1,$3)}
; ;