congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SExpressionQuotedStringType.lexical
Code IndexAdd Tabnine to your IDE (free)

How to use
lexical
method
in
com.io7m.jsx.SExpressionQuotedStringType

Best Java code snippets using com.io7m.jsx.SExpressionQuotedStringType.lexical (Showing top 7 results out of 315)

origin: com.io7m.jsx/com.io7m.jsx.combinators

@Override
public Validation<List<JSXValidationErrorType>, SExpressionListType>
quotedString(final SExpressionQuotedStringType ex)
 throws UnreachableCodeException
{
 final StringBuilder sb = new StringBuilder(128);
 sb.append("Expected a list but got a quoted string.");
 sb.append(System.lineSeparator());
 sb.append("  Expected: A list");
 sb.append(System.lineSeparator());
 sb.append("  Received: A quoted string \"");
 sb.append(ex);
 sb.append("\"");
 sb.append(System.lineSeparator());
 return Validation.invalid(List.of(
  JSXValidationError.of(ex.lexical(), sb.toString())));
}
origin: com.io7m.jsx/com.io7m.jsx.combinators

@Override
public Validation<List<JSXValidationErrorType>, SExpressionSymbolType>
quotedString(final SExpressionQuotedStringType ex)
 throws UnreachableCodeException
{
 final StringBuilder sb = new StringBuilder(128);
 sb.append("Expected a symbol but got a quoted string.");
 sb.append(System.lineSeparator());
 sb.append("  Expected: A symbol");
 sb.append(System.lineSeparator());
 sb.append("  Received: A quoted string \"");
 sb.append(ex);
 sb.append("\"");
 sb.append(System.lineSeparator());
 return Validation.invalid(
  List.of(JSXValidationError.of(ex.lexical(), sb.toString())));
}
origin: com.io7m.jpra/com.io7m.jpra.compiler.core

/**
 * @param e The expression
 *
 * @return A parser exception
 *
 * @see JPRAParseErrorCode#EXPECTED_LIST_GOT_QUOTED_STRING
 */
public static JPRACompilerParseException expectedListGotQuotedString(
 final SExpressionQuotedStringType e)
{
 final StringBuilder mb = new StringBuilder(256);
 mb.append("  Expected: A list");
 mb.append(System.lineSeparator());
 mb.append("  Got: A quoted string '");
 mb.append(e.text());
 mb.append("'");
 final String m = NullCheck.notNull(mb.toString(), "Message");
 return new JPRACompilerParseException(
  e.lexical().map(LexicalPosition::copyOf),
  JPRAParseErrorCode.EXPECTED_LIST_GOT_QUOTED_STRING,
  m);
}
origin: com.io7m.jpra/com.io7m.jpra.compiler.core

/**
 * @param e The expression
 *
 * @return A parser exception
 *
 * @see JPRAParseErrorCode#EXPECTED_SYMBOL_GOT_QUOTED_STRING
 */
public static JPRACompilerParseException expectedSymbolGotQuotedString(
 final SExpressionQuotedStringType e)
{
 final StringBuilder mb = new StringBuilder(256);
 mb.append("  Expected: A symbol");
 mb.append(System.lineSeparator());
 mb.append("  Got: A quoted string '");
 mb.append(e.text());
 mb.append("'");
 final String m = NullCheck.notNull(mb.toString(), "Message");
 return new JPRACompilerParseException(
  e.lexical().map(LexicalPosition::copyOf),
  JPRAParseErrorCode.EXPECTED_SYMBOL_GOT_QUOTED_STRING,
  m);
}
origin: com.io7m.jpra/com.io7m.jpra.compiler.core

/**
 * @param e The expression
 *
 * @return A parser exception
 *
 * @see JPRAParseErrorCode#EXPECTED_SYMBOL_OR_LIST_GOT_QUOTED_STRING
 */
public static JPRACompilerParseException expectedSymbolOrListGotQuotedString(
 final SExpressionQuotedStringType e)
{
 final StringBuilder mb = new StringBuilder(256);
 mb.append("  Expected: A list or a symbol");
 mb.append(System.lineSeparator());
 mb.append("  Got: A quoted string '");
 mb.append(e.text());
 mb.append("'");
 final String m = NullCheck.notNull(mb.toString(), "Message");
 return new JPRACompilerParseException(
  e.lexical().map(LexicalPosition::copyOf),
  JPRAParseErrorCode.EXPECTED_SYMBOL_OR_LIST_GOT_QUOTED_STRING,
  m);
}
origin: com.io7m.jsx/com.io7m.jsx.combinators

  JSXValidationError.of(s.lexical(), sb.toString())));
});
origin: com.io7m.jsx/com.io7m.jsx.combinators

  JSXValidationError.of(s.lexical(), sb.toString())));
});
com.io7m.jsxSExpressionQuotedStringTypelexical

Popular methods of SExpressionQuotedStringType

  • getText
  • text
  • getLexicalInformation

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JCheckBox (javax.swing)
  • JList (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Runner (org.openjdk.jmh.runner)
  • Top 17 PhpStorm 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