congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Scanner.getChar
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Notification (javax.management)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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