[jbosstools-commits] JBoss Tools SVN: r43180 - trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Aug 22 15:46:44 EDT 2012


Author: dgolovin
Date: 2012-08-22 15:46:44 -0400 (Wed, 22 Aug 2012)
New Revision: 43180

Modified:
   trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/TokenizerFactory.java
Log:
Code clean up: main method removed

Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/TokenizerFactory.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/TokenizerFactory.java	2012-08-22 17:05:42 UTC (rev 43179)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/TokenizerFactory.java	2012-08-22 19:46:44 UTC (rev 43180)
@@ -129,46 +129,4 @@
 		t.setRules(DEFAULT_RULE_SET);
 		return t;
 	}
-
-
-	public static void main(String[] args) {
-		boolean b = Pattern.matches("re(he|ma)*\\sat", "rehemahe at");
-		System.out.println(b);
-		if(true) return;
-		String text = "ioioio#{a(1.2e1i) + b c + d}ioioio#{0}"; //$NON-NLS-1$
-//"#{a[b()['l'].j]}";
-//"#{g11.g12.y13} #{#{  #{a14.b15(x.t.u(uu.ii[9],  j)).b16(m17(v18(i19[2]).u20).)+ a21(c.).b.}";
-//"#{not a.b(x,y) + s.h((6 != -8) & (7 + -iy88.g[9].h(7  div 8).i.j)+(8) ? 4 : 7,'p', a.b.c.d[null])}";
-//"q82#{a(  g.h(7  +  8) + 8, g['h'].j(),'p')}k#{b}";
-		Tokenizer t = createJbossTokenizer();
-		LexicalToken token = t.parse(text);
-		LexicalToken ti = token;
-		
-		while(ti != null) {
-			int type = ti.getType();
-			System.out.println(type + ":" + ti.getText() + ":"); //$NON-NLS-1$ //$NON-NLS-2$
-			ti = ti.getNextToken();
-		}
-		List<SyntaxError> errors = t.getErrors();
-		for (SyntaxError e: errors) {
-			System.out.println("state=" + e.getState() + " position=" + e.getPosition() + " problem=" + e.getProblem()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-		}
-		ELParser parser = ELParserUtil.getJbossFactory().createParser();
-		ELModel model = parser.parse(text, 0, 90);
-		System.out.println(model);
-
-		ELExpression expr = model.getInstances().get(0).getExpression();
-		System.out.println("Expression=" + expr); //$NON-NLS-1$
-		List<ELInvocationExpression> is = expr.getInvocations();
-		System.out.println("Invocations:"); //$NON-NLS-1$
-		for (ELInvocationExpression i : is) {
-			System.out.println(i);
-		}
-
-		int off = 8;
-		ELExpression expr1 = ELUtil.findExpression(model, off);
-		System.out.println("Expression at " + off + ": " + expr1); //$NON-NLS-1$ //$NON-NLS-2$
-		
-	}
-
 }



More information about the jbosstools-commits mailing list