Codota Logo
org.matheclipse.parser.client
Code IndexAdd Codota to your IDE (free)

How to use org.matheclipse.parser.client

Best Java code snippets using org.matheclipse.parser.client (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.refcodes/refcodes-criteria

/**
 * Throw syntax error.
 * 
 * @param error the error
 * @throws org.matheclipse.parser.client.SyntaxError the syntax error
 */
protected void throwSyntaxError( final String error ) throws SyntaxError {
  throw new SyntaxError( fCurrentPosition - 1, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, 1 );
}
origin: org.appdapter/ext.bundle.math.symja_jas

protected void initialize(final String s) throws SyntaxError {
  initializeNullScanner();
  fInputString = s;
  if (s != null) {
    getNextToken();
  }
}
origin: org.refcodes/refcodes-criteria

/**
 * Initialize Scanner without a math-expression.
 */
public Scanner() {
  initializeNullScanner();
}
origin: org.appdapter/ext.bundle.math.symja_jas

/**
 * Get the variable names from the given expression.
 * 
 * @param expression
 * @param result
 *          a set which contains the variable names
 */
public static void getVariables(String expression, Set<String> result) {
 Parser p = new Parser();
 ASTNode node = p.parse(expression);
 getVariables(node, result);
}
origin: axkr/symja_android_library

private final ASTNode parsePostfixOperator(ASTNode lhs, PostfixOperator postfixOperator) {
  getNextToken();
  lhs = postfixOperator.createFunction(fFactory, lhs);
  lhs = parseArguments(lhs);
  return lhs;
}
origin: axkr/symja_android_library

protected void initialize(final String s) throws SyntaxError {
  initializeNullScanner();
  fInputString = Characters.substituteCharacters(s).toCharArray();
  getNextToken();
}
origin: org.appdapter/ext.bundle.math.symja_jas

public boolean apply(final String str) {
  try {
    final Parser fParser = new Parser();
    final ASTNode parsedAST = fParser.parse(str);
    final IExpr parsedExpression = AST2Expr.CONST.convert(parsedAST);
    if (parsedExpression != null) {
      return true;
    }
  } catch (final SyntaxError e) {
  }
  return false;
}
origin: axkr/symja_android_library

private ASTNode parseExpression() {
  return parseExpression(parsePrimary(0), 0);
}
origin: org.appdapter/ext.bundle.math.symja_jas

private ASTNode parseArguments(ASTNode lhs) {
  if (fRelaxedSyntax) {
    if (fToken == TT_PRECEDENCE_OPEN) {
      lhs = getFunction(lhs);
    }
  } else {
    if (fToken == TT_ARGUMENTS_OPEN) {
      lhs = getFunction(lhs);
    }
  }
  return lhs;
}
origin: axkr/symja_android_library

/**
 * Verify the length of the input string and get the next character from the input string. If the current position
 * is greater than the input length, set current character to SPACE and token to TT_EOF.
 * 
 */
protected void getChar() {
  if (isValidPosition()) {
    getNextChar();
    return;
  }
  fCurrentPosition = fInputString.length + 1;
  fCurrentChar = ' ';
  fToken = TT_EOF;
}
origin: axkr/symja_android_library

/**
 * Reevaluate the last <code>expression</code> (possibly after a new variable assignment).
 * 
 * @return
 * @throws SyntaxError
 */
public IExpr eval() {
  if (fExpr == null) {
    throw new SyntaxError(0, 0, 0, " ", "No parser input defined", 1);
  }
  return eval(fExpr);
}
origin: org.refcodes/refcodes-criteria

/**
 * Throw syntax error.
 * 
 * @param error the error
 * @param errorLength the error length
 * @throws org.matheclipse.parser.client.SyntaxError the syntax error
 */
protected void throwSyntaxError( final String error, final int errorLength ) throws SyntaxError {
  throw new SyntaxError( fCurrentPosition - errorLength, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, errorLength );
}
origin: org.refcodes/refcodes-criteria

/**
 * Get the variable names from the given expression.
 * 
 * @param expression the expression
 * @param result a set which contains the variable names
 */
public static void getVariables( String expression, Set<String> result ) {
  Parser p = new Parser();
  ASTNode node = p.parse( expression );
  getVariables( node, result );
}
origin: org.refcodes/refcodes-criteria

/**
 * Initialize.
 * 
 * @param s the s
 * @throws org.matheclipse.parser.client.SyntaxError the syntax error
 */
protected void initialize( final String s ) throws SyntaxError {
  initializeNullScanner();
  fInputString = s;
  if ( s != null ) {
    getNextToken();
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

/**
 * Initialize Scanner without a math-expression
 * 
 */
public Scanner() {
  initializeNullScanner();
}
origin: axkr/symja_android_library

  protected void throwSyntaxError(final String error, final int errorLength) throws SyntaxError {
    throw new SyntaxError(fCurrentPosition - errorLength, fRowCounter,
        fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, errorLength);
  }
}
origin: axkr/symja_android_library

/**
 * Initialize Scanner without a math-expression
 */
protected Scanner(boolean packageMode, boolean explicitTimes) {
  fPackageMode = packageMode;
  fExplicitTimes = explicitTimes;
  initializeNullScanner();
}
origin: org.appdapter/ext.bundle.math.symja_jas

protected void throwSyntaxError(final String error, final int errorLength) throws SyntaxError {
  throw new SyntaxError(fCurrentPosition - errorLength, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(),
      error, errorLength);
}
origin: org.appdapter/ext.bundle.math.symja_jas

protected void throwSyntaxError(final String error) throws SyntaxError {
  throw new SyntaxError(fCurrentPosition - 1, rowCount, fCurrentPosition - fCurrentColumnStartPosition, getErrorLine(), error, 1);
}
origin: axkr/symja_android_library

protected void throwSyntaxError(final String error) throws SyntaxError {
  throw new SyntaxError(fCurrentPosition - 1, fRowCounter, fCurrentPosition - fCurrentColumnStartPosition,
      getErrorLine(), error, 1);
}
org.matheclipse.parser.client

Most used classes

  • Parser
    Create an expression of the ASTNode class-hierarchy from a math formulas string representation Se
  • Scanner
  • SyntaxError
    Exception for a syntax error detected by the MathEclipse parser
  • ASTNode
    The basic node for a parsed expression string
  • FloatNode
    A node for a parsed floating number string. The floating point string is not converted to a binary f
  • FunctionNode,
  • IParserFactory,
  • IntegerNode,
  • NumberNode,
  • PatternNode,
  • StringNode,
  • SymbolNode,
  • BooleanVariable,
  • DoubleEvaluator,
  • DoubleNode,
  • DoubleVariable,
  • IBooleanBoolean1Function,
  • IBooleanBoolean2Function,
  • IBooleanDouble2Function
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now