{"version":"1.0","author_name":"syun77","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u6587\u5b57\u5217\u8868\u73fe\u3092\u5f0f\u3068\u3057\u3066\u8a55\u4fa1\u3059\u308b\uff08\u6f14\u7b97\u7d50\u679c\u3092\u6c42\u3081\u308b\uff09\u65b9\u6cd5\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002 \u6587\u5b57\u5217\u3092\u5f0f\u3068\u3057\u3066\u8a55\u4fa1\u3059\u308b\u65b9\u6cd5 Expression\u30af\u30e9\u30b9\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9 Godot Engine (GDScript) \u306b\u306f\u3001\"Expression\" \u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092\u4f7f\u3046\u3068\u6587\u5b57\u5217\u3092\u5f0f\u3068\u3057\u3066\u8a55\u4fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 var expression = Expression.new() # \u8a55\u4fa1\u3057\u305f\u3044\u6587\u5b57\u5217\u8868\u73fe\u3092\u6e21\u3059 expression.parse(\"(1+2) * 5\") # \u5f0f\u3068\u3057\u3066\u8a55\u4fa1\u3059\u308b var result = expression.execute() # \"15\" \u3068\u51fa\u529b\u3055\u2026","author_url":"https://blog.hatena.ne.jp/syun77/","url":"https://2dgames.jp/entry/godot-evaluating-expressions/","type":"rich","height":"190","provider_url":"https://hatena.blog","categories":["Godot"],"published":"2023-01-11 05:00:00","title":"\u3010Godot\u3011\u6587\u5b57\u5217\u3092\u5f0f\u3068\u3057\u3066\u8a55\u4fa1\u3059\u308b\u65b9\u6cd5","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2F2dgames.jp%2Fentry%2Fgodot-evaluating-expressions%2F\" title=\"\u3010Godot\u3011\u6587\u5b57\u5217\u3092\u5f0f\u3068\u3057\u3066\u8a55\u4fa1\u3059\u308b\u65b9\u6cd5 - 2dgames.jp\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/syun77/20250823/20250823114214.gif","blog_title":"2dgames.jp","provider_name":"Hatena Blog","width":"100%","blog_url":"https://2dgames.jp/"}