1 //===- LLLexer.h - Lexer for LLVM Assembly Files ----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This class represents the Lexer for .ll files.
12 //===----------------------------------------------------------------------===//
14 #ifndef LIB_ASMPARSER_LLLEXER_H
15 #define LIB_ASMPARSER_LLLEXER_H
33 explicit LLLexer(MemoryBuffer *StartBuf);
36 const char *getTokStart() const { return TokStart; }
37 unsigned getTokLength() const { return CurPtr-TokStart; }
38 unsigned getLineNo() const { return CurLineNo; }
39 std::string getFilename() const;
42 const std::string getError() const { return TheError; }
46 void SkipLineComment();
48 int LexDigitOrNegative();
55 } // end namespace llvm