Skip to content

WITH x (*1W ) { ADD y _C1_ } does not add to word beyond window #163

@unhammer

Description

@unhammer

Image

grammar:

DELIMITERS=".";


WITH (n) IF
    (*1W (adv))                 # _C1_
{
    ADD (@subj) (*) ;
    ADD (@advl) _C1_ ;
};

input:

"<a>"
	"a" n
"<b>"
	"b" vblex
"<.>"
	"." sent

"<c>"
	"c" adv

output:

"<a>"
	"a" n @subj WITH:4 ADD:7
"<b>"
	"b" vblex
"<.>"
	"." sent

"<c>"
	"c" adv

expected:

"<a>"
	"a" n @subj WITH:4 ADD:7
"<b>"
	"b" vblex
"<.>"
	"." sent

"<c>"
	"c" adv @adv WITH:4 ADD:8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions