mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Clarify and add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33919 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
111bb60932
commit
63844ddbf9
23
src/Lexer.h
23
src/Lexer.h
@ -110,16 +110,20 @@ public:
|
|||||||
/// returns a lex code
|
/// returns a lex code
|
||||||
int lex();
|
int lex();
|
||||||
|
|
||||||
/** Just read the next word. If esc is true remember that
|
/// Read the next string, as delimited by double quotes or
|
||||||
some chars might be escaped: "\ at least
|
/// whitespace. If esc is true, then we remember that some chars
|
||||||
*/
|
/// might be escaped: \" at least.
|
||||||
bool next(bool esc = false);
|
bool next(bool esc = false);
|
||||||
|
|
||||||
/** Read next token. This one is almost the same as next,
|
/// Read next token. This one is almost the same as next(),
|
||||||
but it will consider " as a regular character and always
|
/// but it will consider " as a regular character and always
|
||||||
split a word if it contains a backslash.
|
/// split a word if it contains a backslash.
|
||||||
*/
|
|
||||||
bool nextToken();
|
bool nextToken();
|
||||||
|
|
||||||
|
/// Puts the rest of the line in the buffer, where it will
|
||||||
|
/// be available via getString() or getDocString().
|
||||||
|
bool eatLine();
|
||||||
|
|
||||||
/// Push a token, that next token got from lyxlex.
|
/// Push a token, that next token got from lyxlex.
|
||||||
void pushToken(std::string const &);
|
void pushToken(std::string const &);
|
||||||
|
|
||||||
@ -134,10 +138,8 @@ public:
|
|||||||
double getFloat() const;
|
double getFloat() const;
|
||||||
///
|
///
|
||||||
std::string const getString() const;
|
std::string const getString() const;
|
||||||
|
|
||||||
///
|
///
|
||||||
docstring const getDocString() const;
|
docstring const getDocString() const;
|
||||||
|
|
||||||
/** Get a long string, ended by the tag `endtag'.
|
/** Get a long string, ended by the tag `endtag'.
|
||||||
This string can span several lines. The first line
|
This string can span several lines. The first line
|
||||||
serves as a template for how many spaces the lines
|
serves as a template for how many spaces the lines
|
||||||
@ -147,9 +149,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
std::string const getLongString(std::string const & endtag);
|
std::string const getLongString(std::string const & endtag);
|
||||||
|
|
||||||
///
|
|
||||||
bool eatLine();
|
|
||||||
|
|
||||||
/// Pushes a token list on a stack and replaces it with a new one.
|
/// Pushes a token list on a stack and replaces it with a new one.
|
||||||
template<int N> void pushTable(LexerKeyword (&table)[N])
|
template<int N> void pushTable(LexerKeyword (&table)[N])
|
||||||
{ pushTable(table, N); }
|
{ pushTable(table, N); }
|
||||||
|
Loading…
Reference in New Issue
Block a user