Skip to content

Instantly share code, notes, and snippets.

@Eyas
Created May 25, 2020 17:47
Show Gist options
  • Save Eyas/e196029056309a901e875018a088f4bf to your computer and use it in GitHub Desktop.
Save Eyas/e196029056309a901e875018a088f4bf to your computer and use it in GitHub Desktop.
test("Parse_ParameterListSimple", () => {
expect(
AST.FormatTree(
ParseEntireExpression(Tokens("F(a+b)")),
/*includePositions=*/ false
)
).toMatchInlineSnapshot(`
"FunctionCallAST
Parameters:
[0] BinaryExpressionAST
Type: +
RHS: VariableAST
VariableName: b
LHS: VariableAST
VariableName: a
FunctionPointer: VariableAST
VariableName: F
`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment