Displaying 6 results from an estimated 6 matches for "parsenod".
Did you mean:
parsenode
2015 Jul 29
3
Mapping parse tree elements to tokens
Probably need a generic tree based on "ParseNode" objects that
associate the line information with the symbol (for leaf nodes). As
Duncan notes, it should be possible to gather that from the table.
But it would be nice if there was an "expr" column in the parse data
column in addition to "text". It would contain the par...
2015 Jul 29
2
Mapping parse tree elements to tokens
...ation at first glance, though I
guess one could use some sort of evaluation during analysis.
On Wed, Jul 29, 2015 at 11:47 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 29/07/2015 2:30 PM, Michael Lawrence wrote:
>>
>> Probably need a generic tree based on "ParseNode" objects that
>> associate the line information with the symbol (for leaf nodes). As
>> Duncan notes, it should be possible to gather that from the table.
>>
>> But it would be nice if there was an "expr" column in the parse data
>> column in addition t...
2015 Jul 29
1
Mapping parse tree elements to tokens
...have shown some interest in this issue, thank
you for taking the time to read and respond!
Jim
On Wed, Jul 29, 2015 at 2:47 PM, Duncan Murdoch <murdoch.duncan at gmail.com>
wrote:
> On 29/07/2015 2:30 PM, Michael Lawrence wrote:
>
>> Probably need a generic tree based on "ParseNode" objects that
>> associate the line information with the symbol (for leaf nodes). As
>> Duncan notes, it should be possible to gather that from the table.
>>
>> But it would be nice if there was an "expr" column in the parse data
>> column in addition t...
2015 Jul 29
0
Mapping parse tree elements to tokens
On 29/07/2015 2:30 PM, Michael Lawrence wrote:
> Probably need a generic tree based on "ParseNode" objects that
> associate the line information with the symbol (for leaf nodes). As
> Duncan notes, it should be possible to gather that from the table.
>
> But it would be nice if there was an "expr" column in the parse data
> column in addition to "text"....
2015 Jul 29
0
Mapping parse tree elements to tokens
...> guess one could use some sort of evaluation during analysis.
>
> On Wed, Jul 29, 2015 at 11:47 AM, Duncan Murdoch
> <murdoch.duncan at gmail.com> wrote:
>> On 29/07/2015 2:30 PM, Michael Lawrence wrote:
>>>
>>> Probably need a generic tree based on "ParseNode" objects that
>>> associate the line information with the symbol (for leaf nodes). As
>>> Duncan notes, it should be possible to gather that from the table.
>>>
>>> But it would be nice if there was an "expr" column in the parse data
>>>...
2015 Jul 29
2
Mapping parse tree elements to tokens
I would like to map the parsed tokens obtained from utils::getParseData()
to the parse tree and elements obtained by base::parse().
It looks like back when this code was in the parser package the parse()
function annotated the elements in the tree with their id, which would
allow you to perform this mapping. However when the code was included in R
this functionality was removed.
?getParseData