projects
/
gnome.introspection-doc-generator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JSDOC/TokenStream.vala
[gnome.introspection-doc-generator]
/
JSDOC
/
CompressWhite.vala
diff --git
a/JSDOC/CompressWhite.vala
b/JSDOC/CompressWhite.vala
index
543b167
..
6a38ef7
100644
(file)
--- a/
JSDOC/CompressWhite.vala
+++ b/
JSDOC/CompressWhite.vala
@@
-17,6
+17,8
@@
namespace JSDOC
{
//keepWhite = keepWhite || false;
ts.rewind();
{
//keepWhite = keepWhite || false;
ts.rewind();
+ //ts.dumpAllFlat(); GLib.Process.exit(1);
+
//var str = File.read(fn);
var rep_var = 1;
//var str = File.read(fn);
var rep_var = 1;
@@
-78,15
+80,14
@@
namespace JSDOC
//println("got = function() ");
tok = ts.nextTok();
tok = ts.nextTok();
//println("got = function() ");
tok = ts.nextTok();
tok = ts.nextTok();
- tok = ts.nextTok();
+
//tok = ts.next();
var cu = ts.cursor;
//tok = ts.next();
var cu = ts.cursor;
- print("CUR: %s\n", ts.lookTok(0).asString());
- print("NEXT = should be brace: %s\n", ts.lookTok(1).asString());
-
-
+ print("NEXT = should be brac: %s\n", ts.lookTok(1).asString());
+
+ print("cursor = %d", ts.cursor);
- if (t
ok
.data != "(" || ts.balance("(").size < 1 ){
+ if (t
s.lookTok(1)
.data != "(" || ts.balance("(").size < 1 ){
print("balance ( issue on line %d\n", ts.toArray().get(cu).line);
ts.dump(cu-40, cu+2);
print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>");
print("balance ( issue on line %d\n", ts.toArray().get(cu).line);
ts.dump(cu-40, cu+2);
print(">>>>>>>>>>>>>>>>>HERE>>>>>>>>>>>>");
@@
-94,10
+95,13
@@
namespace JSDOC
throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" );
}
throw new CompressWhiteError.BRACE( "could not find end lbrace!!!" );
}
- tok = ts.lookTok(0);
-
+ print("cursor = %d", ts.cursor);
+ print("CUR = should be ): %s\n", ts.lookTok(0).asString());
+
+ tok = ts.nextTok();
+ print("CUR = should be {: %s\n", ts.lookTok(0).asString());
cu = ts.cursor; // set the cursor to here.. so the next bit of the code will check inside the method.
cu = ts.cursor; // set the cursor to here.. so the next bit of the code will check inside the method.
-
+ print("cursor = %d", ts.cursor);
//print("AFTER BALANCE (");
//ts.dump(cu, ts.cursor);
//ts.cursor--; // cursor at the (
//print("AFTER BALANCE (");
//ts.dump(cu, ts.cursor);
//ts.cursor--; // cursor at the (