Skip to content

Instantly share code, notes, and snippets.

@awwong1
Created November 16, 2018 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awwong1/956046ccc6a70780261e5c943a73064a to your computer and use it in GitHub Desktop.
Save awwong1/956046ccc6a70780261e5c943a73064a to your computer and use it in GitHub Desktop.
insyn output
$ ./insyn.py --parse-example --db-offset 0
============== SOURCE CODE ==============
package com.cl.interpolatordebugger;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
============== PARSED CODE ==============
{<R:0> {<R:1> <T:32> {<R:46> <T:111> <T:69> <T:111> <T:69> <T:111> } <T:67> } {<R:2> <T:25> {<R:46> <T:111> <T:69> <T:111> <T:69> <T:111> } <T:67> } {<R:2> <T:25> {<R:46> <T:111> <T:69> <T:111> <T:69> <T:111> } <T:67> } {<R:3> {<R:5> <T:35> } {<R:7> <T:9> <T:111> <T:17> {<R:98> {<R:39> <T:111> {<R:100> <T:72> {<R:40> {<R:98> {<R:39> <T:111> } } } <T:71> } } } {<R:16> <T:63> {<R:18> {<R:4> {<R:5> <T:35> } } {<R:19> {<R:25> <T:111> {<R:42> <T:61> <T:62> } {<R:63> <T:63> {<R:64> {<R:67> {<R:82> {<R:81> <T:40> <T:61> {<R:80> {<R:82> {<R:86> {<R:22> {<R:98> {<R:39> <T:111> } } } <T:69> <T:9> } } } <T:62> } } <T:67> } } <T:64> } } } } <T:64> } } } <T:-1> }
$ ./insyn.py --parse-example --db-offset 0 --verbose
============== SOURCE CODE ==============
package com.cl.interpolatordebugger;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
============== PARSED CODE ==============
{<R:CompilationUnitContext>
{<R:PackageDeclarationContext>
<T:package>
{<R:QualifiedNameContext>
<T:com>
<T:.>
<T:cl>
<T:.>
<T:interpolatordebugger>
}
<T:;>
}
{<R:ImportDeclarationContext>
<T:import>
{<R:QualifiedNameContext>
<T:android>
<T:.>
<T:app>
<T:.>
<T:Application>
}
<T:;>
}
{<R:ImportDeclarationContext>
<T:import>
{<R:QualifiedNameContext>
<T:android>
<T:.>
<T:test>
<T:.>
<T:ApplicationTestCase>
}
<T:;>
}
{<R:TypeDeclarationContext>
{<R:ClassOrInterfaceModifierContext>
<T:public>
}
{<R:ClassDeclarationContext>
<T:class>
<T:ApplicationTest>
<T:extends>
{<R:TypeTypeContext>
{<R:ClassOrInterfaceTypeContext>
<T:ApplicationTestCase>
{<R:TypeArgumentsContext>
<T:<>
{<R:TypeArgumentContext>
{<R:TypeTypeContext>
{<R:ClassOrInterfaceTypeContext>
<T:Application>
}
}
}
<T:>>
}
}
}
{<R:ClassBodyContext>
<T:{>
{<R:ClassBodyDeclarationContext>
{<R:ModifierContext>
{<R:ClassOrInterfaceModifierContext>
<T:public>
}
}
{<R:MemberDeclarationContext>
{<R:ConstructorDeclarationContext>
<T:ApplicationTest>
{<R:FormalParametersContext>
<T:(>
<T:)>
}
{<R:BlockContext>
<T:{>
{<R:BlockStatementContext>
{<R:StatementContext>
{<R:ExpressionContext>
{<R:MethodCallContext>
<T:super>
<T:(>
{<R:ExpressionListContext>
{<R:ExpressionContext>
{<R:PrimaryContext>
{<R:TypeTypeOrVoidContext>
{<R:TypeTypeContext>
{<R:ClassOrInterfaceTypeContext>
<T:Application>
}
}
}
<T:.>
<T:class>
}
}
}
<T:)>
}
}
<T:;>
}
}
<T:}>
}
}
}
}
<T:}>
}
}
}
<T:<EOF>>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment