coli-saar / alto

Alto, the Algebraic Language Toolkit
Other
16 stars 2 forks source link

fix Tree#select for nodes with more than 10 children #28

Open akoehn opened 7 years ago

akoehn commented 7 years ago

Original report by JONAS GROSCHWITZ (Bitbucket: jgroschwitz, GitHub: jgroschwitz).


I last checked this a few months ago, not sure if it still exists.

the Tree#select method uses digits to describe paths, and fails if a node has more than 10 children (i.e. 0-9 are all used up). There is at least a partial implementation that circumvents this issue, but it is not the default and may have slower runtime.