|
MLIR 24.0.0git
|
Parse an optional plain char as a single-character keyword-or-string. More...
#include "mlir/IR/DialectImplementation.h"
Static Public Member Functions | |
| static FailureOr< std::optional< char > > | parse (AsmParser &parser) |
Static Public Attributes | |
| static constexpr bool | isKeyValueCompositional = false |
Parse an optional plain char as a single-character keyword-or-string.
Identifier characters (e.g. A) are accepted as bare keywords; all other values use a quoted+escaped string with two-digit hex escapes (e.g. "\0A" for newline), covering all 256 byte values. Named escapes such as \n are also accepted as input but are not the canonical printed form. Returns std::nullopt if no keyword or string is present.
Definition at line 120 of file DialectImplementation.h.
|
inlinestatic |
Definition at line 123 of file DialectImplementation.h.
References mlir::AsmParser::emitError(), mlir::AsmParser::getCurrentLocation(), and mlir::AsmParser::parseOptionalKeywordOrString().
|
staticconstexpr |
Definition at line 121 of file DialectImplementation.h.