From e063e1453c611ac0d862ece2d2797582573c801f Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 25 Jan 2022 16:51:37 +0100 Subject: Improve parser --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index a479f1b..99fbdb0 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ PGNP is a Portable Game Notation (PGN) parser. More details about the PGN specification can be found [here](https://www.chessclub.com/help/PGN-spec). +# Features +- Basic PGN parsing (tags, move, comments, variations etc.) +- Merged PGN files parsing (several games in one file) + # How to use it ? PGNP can be used as a shared library in your project. You only need to include `pgnp.hpp` and linking the .so file to your @@ -17,6 +21,7 @@ Load PGN from file: pgnp::PGN pgn; try { pgn.FromFile("pgn.txt"); + pgn.ParseNextGame(); } catch(...){ // Handle exceptions @@ -24,8 +29,9 @@ Load PGN from file: Load PGN from string: pgnp::PGN pgn; + pgn.FromString("YOUR PGN CONTENT HERE"); try { - pgn.FromString("YOUR PGN CONTENT HERE"); + pgn.ParseNextGame(); } catch(...){ // Handle exceptions -- cgit v1.2.3