Skip to content

toExpression doesn't work properly for some operators #14

Description

@leonid-shutov

Describe the bug
toExpression doesn't work properly for some operators

To Reproduce

const program = '(eq 1 2)';

const tokens = tokenize(program);

const expression = parse(tokens);

console.log(expression.toExpression()); // (1eq2)

console.log(expression.toJavaScript()); // () => (1eq2)

Expected behavior
expression.toExpression() has to return 1 === 2

Additional context
We probably have to create a mapping between lisp and javascript operators

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions