|
LLVM
3.7.0
|
Scans YAML tokens from a MemoryBuffer. More...
Public Member Functions | |
| Scanner (StringRef Input, SourceMgr &SM, bool ShowColors=true) | |
| Scanner (MemoryBufferRef Buffer, SourceMgr &SM_, bool ShowColors=true) | |
| Token & | peekNext () |
| Parse the next token and return it without popping it. More... | |
| Token | getNext () |
| Parse the next token and pop it from the queue. More... | |
| void | printError (SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Message, ArrayRef< SMRange > Ranges=None) |
| void | setError (const Twine &Message, StringRef::iterator Position) |
| void | setError (const Twine &Message) |
| bool | failed () |
| Returns true if an error occurred while parsing. More... | |
Scans YAML tokens from a MemoryBuffer.
Definition at line 266 of file YAMLParser.cpp.
Definition at line 761 of file YAMLParser.cpp.
| Scanner::Scanner | ( | MemoryBufferRef | Buffer, |
| SourceMgr & | SM_, | ||
| bool | ShowColors = true |
||
| ) |
Definition at line 766 of file YAMLParser.cpp.
|
inline |
Returns true if an error occurred while parsing.
Definition at line 298 of file YAMLParser.cpp.
| Token Scanner::getNext | ( | ) |
Parse the next token and pop it from the queue.
Definition at line 814 of file YAMLParser.cpp.
References llvm::iplist< NodeTy, Traits >::empty(), peekNext(), llvm::iplist< NodeTy, Traits >::pop_front(), and llvm::MipsISD::Ret.
Referenced by llvm::yaml::dumpTokens(), and llvm::yaml::scanTokens().
| Token & Scanner::peekNext | ( | ) |
Parse the next token and return it without popping it.
Definition at line 787 of file YAMLParser.cpp.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::iplist< NodeTy, Traits >::clear(), llvm::iplist< NodeTy, Traits >::empty(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::iplist< NodeTy, Traits >::front(), and llvm::ilist< NodeTy >::push_back().
Referenced by getNext().
|
inline |
Definition at line 277 of file YAMLParser.cpp.
References llvm::None, llvm::SourceMgr::PrintMessage(), and Ranges.
|
inline |
Definition at line 282 of file YAMLParser.cpp.
References llvm::SourceMgr::DK_Error, and llvm::SMLoc::getFromPointer().
Definition at line 293 of file YAMLParser.cpp.
1.8.6