abstract class Noir::Lexer
- Noir::Lexer
- Reference
- Object
Included Modules
Direct Known Subclasses
- Noir::Lexers::Crystal
- Noir::Lexers::CSS
- Noir::Lexers::HTML
- Noir::Lexers::JavaScript
- Noir::Lexers::JSON
- Noir::Lexers::Python
- Noir::Lexers::Ruby
Defined in:
noir/lexer.crConstant Summary
-
MAX_NULL_SCANS =
5
Constructors
Class Method Summary
- .aliases(aliases : Array(String))
- .aliases
- .append(name, &)
- .filenames(filenames : Array(String))
- .filenames
- .mimetypes(mimetypes : Array(String))
- .mimetypes
- .prepend(name, &)
- .state(name : Symbol)
- .state(name : Symbol, &)
- .tag(tag : String)
- .tag : String
- .tag? : String | Nil
Instance Method Summary
- #current_state
- #lex_all(input : String, output : Formatter)
- #stack : Deque(Noir::Lexer::State)
- #state(name)