Menu

#2 skTreeNodeReader::lex() treats comments as identifiers

open
nobody
None
5
2009-11-15
2009-11-15
danielq
No

The lex() function of the skTreeNodeReader treats each word of a comment that is outside of brackets [ ] as identifier. This is especially a problem in fileds where the index of child elements may get messed up.
e.g.

person {
name [Smith] // surname
age [25]
}

will be stored as:

person {
name [Smith]
//
surname
age [25]
}

skParser takes care of comments inside [ ] but the ones outside should simply be dropped.
Related to this problem is the set of characters allowed to be contained in an identifier, namely
:, -, ., /, \, _, ~ and alpha numeric characters
which does not seem to comply with the Simkin script grammar given in the documentation.
I could provide a patch if the latter aspect can be clarified.

Discussion


Log in to post a comment.

Auth0 Logo