Tabnine Logo
IParserFactory.createSymbol
Code IndexAdd Tabnine to your IDE (free)

How to use
createSymbol
method
in
org.matheclipse.parser.client.ast.IParserFactory

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: org.refcodes/refcodes-criteria

  /**
   * {@inheritDoc} Creates the function.
   */
  @Override
  public ASTNode createFunction( final IParserFactory factory, final ASTNode lhs, final ASTNode rhs ) {
    return factory.createFunction( factory.createSymbol( "Plus" ), lhs, factory.createFunction( factory.createSymbol( "Times" ), factory.createInteger( -1 ), rhs ) );
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public ASTNode createFunction(final IParserFactory factory, final ASTNode lhs, final ASTNode rhs) {
    return factory.createFunction(factory.createSymbol("Plus"), lhs, factory.createFunction(factory.createSymbol("Times"), factory
        .createInteger(-1), rhs));

    // alternatively we can introduce a Subtract operator.
    // see http://code.google.com/p/symja/issues/detail?id=36
    // return factory.createFunction(factory.createSymbol("Subtract"), lhs,
    // rhs);
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public ASTNode createFunction(final IParserFactory factory,
      final ASTNode lhs, final ASTNode rhs) {
    return factory.createFunction(factory.createSymbol(getFunctionName()),
        lhs, rhs);
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public ASTNode createFunction(final IParserFactory factory,
      final ASTNode argument) {
    return factory.createFunction(factory.createSymbol(getFunctionName()),
        argument);
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public ASTNode createFunction(final IParserFactory factory, final ASTNode argument) {
    return factory.createFunction(factory.createSymbol("Times"), factory.createInteger(-1), argument);

    // alternatively we can introduce a Minus operator.
    // see http://code.google.com/p/symja/issues/detail?id=36
    // return factory.createFunction(factory.createSymbol("Minus"), argument);
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public ASTNode createFunction(final IParserFactory factory,
      final ASTNode argument) {
    return factory.createFunction(factory.createSymbol(getFunctionName()),
        argument);
  }
}
origin: org.refcodes/refcodes-criteria

  /**
   * Creates the function.
   * 
   * @param factory the factory
   * @param argument the argument
   * @return the AST node
   */
  public ASTNode createFunction( final IParserFactory factory, final ASTNode argument ) {
    return factory.createFunction( factory.createSymbol( getFunctionName() ), argument );
  }
}
origin: org.refcodes/refcodes-criteria

  /**
   * Creates the function.
   * 
   * @param factory the factory
   * @param lhs the lhs
   * @param rhs the rhs
   * @return the AST node
   */
  public ASTNode createFunction( final IParserFactory factory, final ASTNode lhs, final ASTNode rhs ) {
    return factory.createFunction( factory.createSymbol( getFunctionName() ), lhs, rhs );
  }
}
origin: org.refcodes/refcodes-criteria

  /**
   * Creates the function.
   * 
   * @param factory the factory
   * @param argument the argument
   * @return the AST node
   */
  public ASTNode createFunction( final IParserFactory factory, final ASTNode argument ) {
    return factory.createFunction( factory.createSymbol( getFunctionName() ), argument );
  }
}
origin: org.refcodes/refcodes-criteria

  /**
   * {@inheritDoc} Creates the function.
   */
  @Override
  public ASTNode createFunction( final IParserFactory factory, final ASTNode argument ) {
    return factory.createFunction( factory.createSymbol( "Times" ), factory.createInteger( -1 ), argument );
  }
}
origin: org.refcodes/refcodes-criteria

  /**
   * {@inheritDoc} Creates the function.
   */
  @Override
  public ASTNode createFunction( final IParserFactory factory, final ASTNode lhs, final ASTNode rhs ) {
    if ( rhs instanceof IntegerNode ) {
      if ( lhs instanceof IntegerNode ) {
        return new FractionNode( (IntegerNode) lhs, (IntegerNode) rhs );
      }
      return factory.createFunction( factory.createSymbol( "Times" ), lhs, new FractionNode( IntegerNode.C1, (IntegerNode) rhs ) );
    }
    return factory.createFunction( factory.createSymbol( "Times" ), lhs, factory.createFunction( factory.createSymbol( "Power" ), rhs, factory.createInteger( -1 ) ) );
  }
}
origin: org.appdapter/ext.bundle.math.symja_jas

  public ASTNode createFunction(final IParserFactory factory,
      final ASTNode lhs, final ASTNode rhs) {
    if (rhs instanceof IntegerNode) {
      if (lhs instanceof IntegerNode) {
        return new FractionNode((IntegerNode) lhs, (IntegerNode) rhs);
      }
      return factory.createFunction(factory.createSymbol("Times"), lhs,
          new FractionNode(IntegerNode.C1, (IntegerNode) rhs));
    }
    return factory.createFunction(factory.createSymbol("Times"), lhs,
        factory.createFunction(factory.createSymbol("Power"), rhs,
            factory.createInteger(-1)));
  }
}
origin: org.refcodes/refcodes-criteria

/**
 * Read the current identifier from the expression factories table.
 * 
 * @return the symbol
 * @throws SyntaxError the syntax error
 * @see
 */
private SymbolNode getSymbol() throws SyntaxError {
  String identifier = getIdentifier();
  if ( !fFactory.isValidIdentifier( identifier ) ) {
    throwSyntaxError( "Invalid identifier: " + identifier + " detected." );
  }
  final SymbolNode symbol = fFactory.createSymbol( identifier );
  getNextToken();
  return symbol;
}
origin: org.appdapter/ext.bundle.math.symja_jas

/**
 * Read the current identifier from the expression factories table
 * 
 * @return
 * @see
 */
private SymbolNode getSymbol() throws SyntaxError {
  String identifier = getIdentifier();
  if (!fFactory.isValidIdentifier(identifier)) {
    throwSyntaxError("Invalid identifier: " + identifier + " detected.");
  }
  final SymbolNode symbol = fFactory.createSymbol(identifier);
  getNextToken();
  return symbol;
}
origin: org.appdapter/ext.bundle.math.symja_jas

function = fFactory.createFunction(fFactory.createSymbol(IConstantOperators.Part), temp);
function = fFactory.createFunction(fFactory.createSymbol(IConstantOperators.Part), function);
origin: org.appdapter/ext.bundle.math.symja_jas

/**
 * Get a list {...}
 * 
 */
private ASTNode getList() throws SyntaxError {
  final FunctionNode function = fFactory.createFunction(fFactory.createSymbol(IConstantOperators.List));
  getNextToken();
  if (fToken == TT_LIST_CLOSE) {
    getNextToken();
    return function;
  }
  getArguments(function);
  if (fToken == TT_LIST_CLOSE) {
    getNextToken();
    return function;
  }
  throwSyntaxError("')' expected.");
  return null;
}
origin: org.refcodes/refcodes-criteria

/**
 * Get a list {...}
 * 
 * @return the list
 * @throws SyntaxError the syntax error
 */
private ASTNode getList() throws SyntaxError {
  final FunctionNode function = fFactory.createFunction( fFactory.createSymbol( IConstantOperators.List ) );
  getNextToken();
  if ( fToken == TT_LIST_CLOSE ) {
    getNextToken();
    return function;
  }
  getArguments( function );
  if ( fToken == TT_LIST_CLOSE ) {
    getNextToken();
    return function;
  }
  throwSyntaxError( "')' expected." );
  return null;
}
origin: org.refcodes/refcodes-criteria

final FunctionNode out = fFactory.createFunction( fFactory.createSymbol( IConstantOperators.Out ) );
final FunctionNode slot = fFactory.createFunction( fFactory.createSymbol( IConstantOperators.Slot ) );
if ( fToken == TT_DIGIT ) {
  slot.add( getNumber( false ) );
final FunctionNode slotSequencce = fFactory.createFunction( fFactory.createSymbol( IConstantOperators.SlotSequence ) );
if ( fToken == TT_DIGIT ) {
  slotSequencce.add( getNumber( false ) );
origin: org.refcodes/refcodes-criteria

if ( oper.getPrecedence() >= min_precedence ) {
  rhs = parseLookaheadOperator( oper.getPrecedence() );
  lhs = fFactory.createFunction( fFactory.createSymbol( oper.getFunctionName() ), lhs, rhs );
  lhs = parseArguments( lhs );
  continue;
origin: org.appdapter/ext.bundle.math.symja_jas

if (oper.getPrecedence() >= min_precedence) {
  rhs = parseLookaheadOperator(oper.getPrecedence());
  lhs = fFactory.createFunction(fFactory.createSymbol(oper.getFunctionName()), lhs, rhs);
  lhs = parseArguments(lhs);
  continue;
org.matheclipse.parser.client.astIParserFactorycreateSymbol

Javadoc

Create a symbol from the scanned identifier string.

Popular methods of IParserFactory

  • get
    Get the operator for a given identifier string like Times, Plus, Sin,...
  • getOperatorCharacters
    The set of characters, which could form an operator.
  • getOperatorList
    Get the operator-list for a given operator-string.
  • isValidIdentifier
    Check if the identifier name is valid.
  • createAST
    Creates a new function with no arguments from the given header expression .
  • createDouble
    Create an double node from the given double value string.
  • createFunction
    Creates a new function with head head and 2 arguments.
  • createInteger
    Create an integer node from the given string.
  • createPattern
    Create a pattern from the given symbol node
  • createString
    Create a string node from the scanned double quoted string.
  • createPattern2
    Create a pattern from the given symbol node (i.e. __ orx__)
  • createPattern3
    Create a pattern from the given symbol node (i.e. ___ orx___)
  • createPattern2,
  • createPattern3

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now