DmitrySoshnikov/syntax

rust: tuple as returning type

namiwang opened this issue · 0 comments

syntax doesn't recognize the following code

some_thing
    : token1 node1 {
        |$1:Token, $2:Node| -> (Token, Node);
        $$ = ($1, $2);
    }
;

have to use sth like

type Type1 = (Token, Node);
some_thing
    : token1 node1 {
        |$1:Token, $2:Node| -> Type1;
        $$ = ($1, $2);
    }
;

Not that critical, though.