Learn R Programming

einops (version 0.2.1)

parse_einops_ast: Parse einops pattern into AST

Description

In the python implementation, they preprocess all 1's into () and then parse it into the equivalent of a GroupAstNode. Here, we won't do that

Usage

parse_einops_ast(tokens)

Value

EinopsAst object

Arguments

tokens

EinopsTokenSequence object from the lexer