Codota Logo
Scanner.getChar
Code IndexAdd Codota to your IDE (free)

How to use
getChar
method
in
org.matheclipse.parser.client.Scanner

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: axkr/symja_android_library

/**
 * Parse a Java <code>string</code> from the digits <code>0,1,2,3,4,5,6,7,8,9</code>.
 * 
 * @return
 */
protected String getIntegerString() {
  int startPosition = fCurrentPosition - 1;
  getChar();
  while (Character.isDigit(fCurrentChar)) {
    getChar();
  }
  int endPosition = fCurrentPosition--;
  return new String(fInputString, startPosition, (--endPosition) - startPosition);
}
origin: org.appdapter/ext.bundle.math.symja_jas

getChar();
if (firstCh == '0') {
  switch (fCurrentChar) {
    numFormat = 2;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'B': // binary format
    numFormat = 2;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'o': // octal format
    numFormat = 8;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'O': // octal format
    numFormat = 8;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'x': // hexadecimal format
    numFormat = 16;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'X': // hexadecimal format
origin: org.refcodes/refcodes-criteria

getChar();
if ( firstCh == '0' ) {
  switch ( fCurrentChar ) {
    numFormat = 2;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'B': // binary format
    numFormat = 2;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'o': // octal format
    numFormat = 8;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'O': // octal format
    numFormat = 8;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'x': // hexadecimal format
    numFormat = 16;
    startPosition = fCurrentPosition;
    getChar();
    break;
  case 'X': // hexadecimal format
origin: org.appdapter/ext.bundle.math.symja_jas

protected String getIdentifier() {
  final int startPosition = fCurrentPosition - 1;
  getChar();
  if (fCurrentChar == '$') {
    getChar();
  }
  while (((fCurrentChar >= 'a') && (fCurrentChar <= 'z')) || ((fCurrentChar >= 'A') && (fCurrentChar <= 'Z'))
      || ((fCurrentChar >= '0') && (fCurrentChar <= '9'))) {
    getChar();
  }
  int endPosition = fCurrentPosition--;
  final int length = (--endPosition) - startPosition;
  if (length == 1) {
    return optimizedCurrentTokenSource1(startPosition, endPosition);
  }
  if (length == 2 && fInputString.charAt(startPosition) == '$') {
    return optimizedCurrentTokenSource2(startPosition, endPosition);
  }
  return fInputString.substring(startPosition, endPosition);
}
origin: org.refcodes/refcodes-criteria

/**
 * Gets the identifier.
 * 
 * @return the identifier
 */
protected String getIdentifier() {
  final int startPosition = fCurrentPosition - 1;
  getChar();
  if ( fCurrentChar == '$' ) {
    getChar();
  }
  while ( ((fCurrentChar >= 'a') && (fCurrentChar <= 'z')) || ((fCurrentChar >= 'A') && (fCurrentChar <= 'Z')) || ((fCurrentChar >= '0') && (fCurrentChar <= '9')) ) {
    getChar();
  }
  int endPosition = fCurrentPosition--;
  final int length = (--endPosition) - startPosition;
  if ( length == 1 ) {
    return optimizedCurrentTokenSource1( startPosition, endPosition );
  }
  if ( length == 2 && fInputString.charAt( startPosition ) == '$' ) {
    return optimizedCurrentTokenSource2( startPosition, endPosition );
  }
  return fInputString.substring( startPosition, endPosition );
}
origin: axkr/symja_android_library

getChar();
if (fExplicitTimes) {
  if (firstCh == '0') {
      numFormat = 2;
      startPosition = fCurrentPosition;
      getChar();
      break;
    case 'B': // binary format
      numFormat = 2;
      startPosition = fCurrentPosition;
      getChar();
      break;
    case 'o': // octal format
      numFormat = 8;
      startPosition = fCurrentPosition;
      getChar();
      break;
    case 'O': // octal format
      numFormat = 8;
      startPosition = fCurrentPosition;
      getChar();
      break;
    case 'x': // hexadecimal format
      numFormat = 16;
      startPosition = fCurrentPosition;
      getChar();
      break;
    case 'X': // hexadecimal format
origin: org.appdapter/ext.bundle.math.symja_jas

protected StringBuffer getStringBuffer() throws SyntaxError {
  final StringBuffer ident = new StringBuffer();
  getChar();
      getChar();
      getChar();
    } else {
      getChar();
origin: axkr/symja_android_library

int startPosition = fCurrentPosition - 1;
getChar();
if (fCurrentChar == '$') {
  getChar();
  getChar();
    contextIndex = fCurrentPosition - 1;
  getChar();
origin: org.refcodes/refcodes-criteria

final StringBuffer ident = new StringBuffer();
getChar();
    getChar();
    getChar();
    getChar();
origin: org.refcodes/refcodes-criteria

  lastOperatorPosition = fCurrentPosition;
getChar();
while ( fFactory.getOperatorCharacters().indexOf( fCurrentChar ) >= 0 ) {
  fOperatorString = fInputString.substring( startPosition, fCurrentPosition );
    lastOperatorPosition = fCurrentPosition;
  getChar();
origin: org.appdapter/ext.bundle.math.symja_jas

  lastOperatorPosition = fCurrentPosition;
getChar();
while (fFactory.getOperatorCharacters().indexOf(fCurrentChar) >= 0) {
  fOperatorString = fInputString.substring(startPosition, fCurrentPosition);
    lastOperatorPosition = fCurrentPosition;
  getChar();
org.matheclipse.parser.clientScannergetChar

Javadoc

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.

Popular methods of Scanner

  • getErrorLine
    Gets the error line.
  • getNextToken
    Get the next token from the input string
  • getOperator
    protected List getOperator()
  • initializeNullScanner
    Initialize null scanner.
  • optimizedCurrentTokenSource1
    Optimized current token source 1.
  • optimizedCurrentTokenSource2
    Optimized current token source 2.
  • throwSyntaxError
    Throw syntax error.
  • getComment
  • getNextChar
  • balanceCode
    Simple bracket balancer for pairs of "( )", "[ ]", "{ }" brackets. Doesn't work for comments or s
  • charAtPosition
    Get the character at the current position in the parsed input string.
  • getIntegerString
    Parse a Java string from the digits 0,1,2,3,4,5,6,7,8,9.
  • charAtPosition,
  • getIntegerString,
  • isOperatorCharacters,
  • isValidPosition,
  • skipWhitespace

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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