OysterKit is a framework that provides a native Swift scanning, lexical analysis, and parsing capabilities. In addition it provides a language that can be used to rapidly define the rules used by OysterKit called STLR
BSD 2-Clause "Simplified" License
177
stars
23
forks
source link
Bug? Pinned tokens could be adopted by their parents #24
When a successful match results in no node OR transient for a HomogenousAST the children are hoisted to the parent. Is this behaviour correct?
Investigation should validate that
It is not at least a warning that a pinned node is also transient or resulted in no node being created by the constructor (perhaps a side effect of the complexity of this approach?)
That if there are pinned children we should not preserve the structure (I don't think so, unless the parent is also pinned)
When a successful match results in no node OR transient for a HomogenousAST the children are hoisted to the parent. Is this behaviour correct?
Investigation should validate that