Skip to content

Commit 553c85f

Browse files
authored
sgf-parsing: Add warning about string literals (#2115)
The test case added in 3c33c24 had to be very careful to specify the difference between the two. Add it to the description as well.
1 parent 33667ce commit 553c85f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

exercises/sgf-parsing/description.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ newlines any whitespace character encountered is replaced with a single space
6464
character irrespective of if the original character is found in its escaped
6565
from or its unescaped from.
6666

67+
Be careful not to get confused between:
68+
69+
- The string as it is represented in a string literal in the tests
70+
- The string that is passed to the SGF parser
71+
72+
Escape sequences in the string literals may have already been processed by the programming language's parser before they are passed to the SGF parser.
73+
6774
There are a few more complexities to SGF (and parsing in general), which
6875
you can mostly ignore. You should assume that the input is encoded in
6976
UTF-8, the tests won't contain a charset property, so don't worry about

0 commit comments

Comments
 (0)