aboutsummaryrefslogtreecommitdiff
path: root/src/PGN.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-01-26 16:24:48 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-01-26 16:24:48 +0100
commit5de6bf399bcc13425829d196a566c609a7b325ac (patch)
tree316eeb0cd7397549d1be371589cd53800d9e85b1 /src/PGN.hpp
parent23275701a362930e1a1f4a96fedc0dacc4d487f1 (diff)
Handle line comments ('%' and ';')
Diffstat (limited to 'src/PGN.hpp')
-rw-r--r--src/PGN.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/PGN.hpp b/src/PGN.hpp
index 2102fa3..63493d0 100644
--- a/src/PGN.hpp
+++ b/src/PGN.hpp
@@ -53,13 +53,15 @@ private:
/// @brief Populate @a tags with by parsing the one starting at location in
/// argument
long ParseNextTag(long);
- /// @brief Get the next non-blank char location starting from location in
- /// argument
- long NextNonBlank(long);
/// @brief Parse a HalfMove at a specific location into @a pgn_content
long ParseHalfMove(long, HalfMove *);
/// @brief Parse a consecutive sequence of comment
long ParseComment(long, HalfMove *);
+ /// @brief Get the next non-blank char location ignoring line comments ('%'
+ /// and ';')
+ long GotoNextToken(long);
+ /// @brief Goto the end of the current line
+ long GotoEOL(long);
};
struct UnexpectedEOF : public std::exception {