8000 Member name containing 3 macros only in safe/eval wrongly parsed as expression · Issue #8 · JakubLinhart/SphereSharp · GitHub
[go: up one dir, main page]

Skip to content

Member name containing 3 macros only in safe/eval wrongly parsed as expression #8

Open

Description

@JakubLinhart

It means that <safe <f1><arg(l1)><f2>> is transpiled as <<f1><<local.l1>><f2>> it means local.l1 is evaluated more than it is required.

Tests:

        [TestMethod]
        public void Can_transpile_arg_between_two_macros_in_safe()
        {
            TranspileCodeBlockCheck(
@"arg(l1,1)
arg(result,<safe <f1><arg(l1)><f2>>)",
@"local.l1=1
local.result=<<f1><local.l1><f2>>");
        }

        [TestMethod]
        public void Can_transpile_arg_between_two_macros_in_eval()
        {
            TranspileCodeBlockCheck(
@"arg(l1,1)
arg(result,<eval <f1><arg(l1)><f2>>)",
@"local.l1=1
local.result=<eval <f1><local.l1><f2>>");
        }

Activity

  1. added
    bug
    on Jul 1, 2018
  2. JakubLinhart commented on Jul 3, 2018

    @JakubLinhart
    OwnerAuthor

    Maybe related to #10 and #12.

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

    bugereborparser

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0