Skip to content

🐛 Bug Report: 原生命令内嵌生成时包含多余引号 #41

@771835

Description

@771835

描述

在使用字符串变量进嵌入原生命令输出时,编译器生成的命令包含了多余的引号。

复现步骤

  1. 创建以下 MCFPP 代码:
    func hello {
        var i = "hello world";
        /say ${i}
    }
    
  2. 编译生成对应的函数文件

期望行为

生成

#datapacks\example\data\mcfpp\function\hello.mcfunction
data modify storage mcfpp:system stack_frame prepend value {}
#var i ="hello world"
say hello world
data remove storage mcfpp:system stack_frame[0]

实际行为

生成的命令内嵌带有引号

data modify storage mcfpp:system stack_frame prepend value {}
#vari="hello world"
say "hello world"
data remove storage mcfpp:system stack_frame[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions