private void lexicalAnalysis(String sourceCode) {
		lexer = new EsperLexer(new ANTLRStringStream(sourceCode));
		lexerSuccess = (lexerErrors = lexer.getNumberOfSyntaxErrors()) <= 0;
		
		//Print output
		if (flagLexerOutput) {
			System.out.println("Lexer output: ");
			Token token;
			EsperLexer tokensOut = new EsperLexer(new ANTLRStringStream(sourceCode));
			while ((token = tokensOut.nextToken()).getType() != -1) {
				// Ignore whitespace
				if (token.getType() != EsperLexer.WHITESPACE)
					System.out.println("Token: " + token.getText() + " | "
							+ getTokenName(token.getType()));
			}
		}
	}