Lexer that tokenizes assembly source for the MC assembler parser.
Synopsis
Declared in <llvm/MC/MCParser/AsmLexer.h>
class AsmLexer;
Member Functions
Name |
Description |
|
Constructors |
|
Copy assignment is deleted; AsmLexer is not copyable. |
Consume the next token from the input stream and return it. |
|
Lex raw text until a comment, statement separator, or newline. |
|
Push |
|
Return whether '@' is allowed in identifiers. |
|
Get the current error string. |
|
Get the current error location. |
|
Get the kind of current token. |
|
Get the current source location. |
|
Return the MCAsmInfo used by this lexer. |
|
Return the default radix used for MASM integer literals. |
|
Get the current (last) lexed token. |
|
Check if the current token has kind |
|
Check if the current token does not have kind |
|
Return true if the last consumed token was an end‐of‐statement. |
|
Look ahead at the next token to be lexed. |
|
Look ahead an arbitrary number of tokens. |
|
Set whether '@' is allowed in identifiers. |
|
Set whether '#' is allowed in identifiers. |
|
Set the source buffer that this lexer will tokenize. |
|
Set the callback invoked when a comment is lexed. |
|
Set whether to lex HLASM‐flavour integers. For now this is only [0‐9]* |
|
Set whether to "lex" HLASM‐flavour character and string literals. For now, setting this option to true, will disable lexing for character and string literals. |
|
Set whether to lex masm‐style hex float literals, such as 3f800000r. |
|
Set whether to lex masm‐style binary (e.g., 0b1101) and radix‐specified literals (e.g., 0ABCh [hex], 576t [decimal], 77o [octal], 1101y [binary]). |
|
Set whether to lex masm‐style string literals, such as 'Can''t find file' and "This ""value"" not found". |
|
Set whether to lex Motorola‐style integer literals, such as $deadbeef or %01010110. |
|
Set the default radix used for MASM integer literals. |
|
Set whether spaces should be ignored by the lexer. |
|
Set whether to use masm‐style default‐radix integer literals. If disabled, assume decimal unless prefixed (e.g., 0x2c [hex], 077 [octal]). |
Created with MrDocs