Skip to content

Commit 100fc7e

Browse files
authored
NEEPMeat 翻译更新 (#5675)
* NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat fix * NEEPMeat fix * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat hotfix * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat update:官库更新 * NEEPMeat fix * NEEPMeat fix * NEEPMeat fix
1 parent d14574d commit 100fc7e

File tree

90 files changed

+1437
-492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1437
-492
lines changed

projects/1.20-fabric/assets/neepmeat/meatweapons/lang/en_us.json

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"itemGroup.neepmeat.weapons": "NEEPMeat Weapons",
44

55
"item.meatweapons.small_ballistic_magazine": "Small Ballistic Cartridge",
6-
"item.meatweapons.small_ballistic_magazine.lore_0": "Holds 12 units.",
6+
"item.meatweapons.small_ballistic_magazine.lore_0": "Holds 60 units.",
77
"item.meatweapons.medium_ballistic_magazine": "Medium Ballistic Cartridge",
8-
"item.meatweapons.medium_ballistic_magazine.lore_0": "Holds 24 units.",
8+
"item.meatweapons.medium_ballistic_magazine.lore_0": "Holds 120 units.",
99
"item.meatweapons.large_ballistic_magazine": "Large Ballistic Magazine",
10-
"item.meatweapons.large_ballistic_magazine.lore_0": "Holds 48 units.",
10+
"item.meatweapons.large_ballistic_magazine.lore_0": "Holds 240 units.",
1111
"item.meatweapons.small_energy_magazine": "Small Battery",
1212
"item.meatweapons.small_energy_magazine.lore_0": "Holds 12 units.",
1313
"item.meatweapons.medium_energy_magazine": "Medium Battery",
@@ -24,10 +24,14 @@
2424
"item.meatweapons.iron_barrel": "Iron Barrel",
2525
"item.meatweapons.meat_steel_barrel": "Meat Steel Barrel",
2626

27-
"item.meatweapons.meatgun_pistol": "Meatgun Pistol",
28-
"item.meatweapons.meatgun_pistol.lore_0": "A lightweight base module with a pistol grip.\nMaximum complexity: 16",
29-
"item.meatweapons.meatgun_staff": "Meatgun Staff",
30-
"item.meatweapons.meatgun_staff.lore_0": "A base module that is held like a staff. Works best with melee attachments.\nMaximum complexity: 16",
27+
"item.meatweapons.basic_pistol": "Raw Gun",
28+
"item.meatweapons.basic_pistol.lore_0": "Cobbled together from reanimated flesh.\nComes with a pistol module preinstalled.\nPassively generates ammunition from food.\nClick with a food item in an inventory to feed.",
29+
"item.meatweapons.meatgun_pistol": "Pistol",
30+
"item.meatweapons.meatgun_pistol.lore_0": "A lightweight Meatgun base with a pistol grip.",
31+
"item.meatweapons.meatgun_staff": "Staff",
32+
"item.meatweapons.meatgun_staff.lore_0": "A Meatgun base that is held like a staff. Works best with melee attachments.",
33+
"item.meatweapons.long_gun": "Long Gun",
34+
"item.meatweapons.long_gun.lore_0": "A Meatgun base with a built-in stock that can support more modules.",
3135

3236
"item.meatweapons.assault_drill": "Assault Drill",
3337
"item.meatweapons.assault_drill.lore": "Shred your enemies! Amuse your friends! Guaranteed to break the ice at parties!",
@@ -44,26 +48,38 @@
4448
"key.meatweapons.down": "Vehicle Down",
4549
"key.meatweapons.fire_secondary": "Secondary Trigger",
4650
"key.meatweapons.use_item": "Use block while holding Meatgun",
51+
"key.meatweapons.trigger_1": "Primary Trigger",
52+
"key.meatweapons.trigger_2": "Secondary Trigger",
4753

4854
"enchantment.meatweapons.spikes": "Spikes",
4955

56+
"meatgun_module.meatweapons.basic_pistol_base": "Raw Gun",
5057
"meatgun_module.meatweapons.base_pistol": "Pistol Base",
5158
"meatgun_module.meatweapons.base_staff": "Staff Base",
59+
"meatgun_module.meatweapons.base_long_gun": "Long Gun",
5260
"meatgun_module.meatweapons.pistol": "Pistol",
5361
"meatgun_module.meatweapons.chugger": "Chugger",
5462
"meatgun_module.meatweapons.bosher": "Bøsher",
5563
"meatgun_module.meatweapons.bosher.desc": "Projects numerous fragments over a wide area.",
5664
"meatgun_module.meatweapons.long_boi": "Long Boi",
65+
"meatgun_module.meatweapons.long_boi.desc": "Shoots a blinding beam that can hit multiple targets.\nCharges when the trigger is held and fires when released. Must be charged for at least 2s to fire, indicated by two beeps.\nAfter 4s, the beam becomes explosive. \n§cAfter 6.5s, the pulse chamber will overload, killing the user.",
5766
"meatgun_module.meatweapons.grenade_launcher": "Grenade Launcher",
5867
"meatgun_module.meatweapons.grenade_launcher.desc": "Launches grenades that bounce off surfaces and explode on contact with entities.",
5968
"meatgun_module.meatweapons.triple_carousel": "Triple Carousel",
6069
"meatgun_module.meatweapons.triple_carousel.desc": "Allows three modules. Trigger signals are passed to the topmost module. Rotates to the next module after either trigger is pressed.",
6170
"meatgun_module.meatweapons.double_carousel": "Double Carousel",
6271
"meatgun_module.meatweapons.underbarrel": "Underbarrel",
72+
"meatgun_module.meatweapons.underbarrel.desc": "Supports two modules, on below the other.\nThe primary trigger is passed to the upper module and the secondary secondary is passed to the lower one.",
6373
"meatgun_module.meatweapons.battery": "Additional Battery",
6474
"meatgun_module.meatweapons.battery.desc": "Stores 16 extra units of energy ammunition.",
6575
"meatgun_module.meatweapons.homing_brain": "Homing Brain",
6676
"meatgun_module.meatweapons.homing_brain.desc": "Adds a homing effect to large (entity) projectiles produced by the weapon.",
77+
"meatgun_module.meatweapons.bone_stealer": "Bone Extractor",
78+
"meatgun_module.meatweapons.bone_stealer.desc": "Draws out an enemy's bones when they are damaged, converting them into ammunition for a random Meatgun in the hotbar.",
79+
"meatgun_module.meatweapons.slow_barrel": "Slow barrel",
80+
"meatgun_module.meatweapons.slow_barrel.desc": "Makes projectiles into entities when installed in a BARREL slot.",
81+
"meatgun_module.meatweapons.basic_stock": "Stock",
82+
"meatgun_module.meatweapons.basic_stock.desc": "+100% accuracy",
6783
"meatgun_module.meatweapons.phage_ray_speed_modifier": "Phage Ray Speed Modifier",
6884
"meatgun_module.meatweapons.phage_ray_speed_modifier.desc": "Increases the mining speed of the Phage Ray",
6985
"meatgun_module.meatweapons.base": "Base",
@@ -74,13 +90,20 @@
7490
"meatgun_module.meatweapons.halberd.desc": "Trigger 1: Normal melee attack.\nTrigger 2 (sprinting): Launches forwards when held and released after half a second.\nTrigger 2 (mounted): hooks and drags the target for a second.",
7591
"meatgun_module.meatweapons.shock_staff": "Shock Staff",
7692
"meatgun_module.meatweapons.shock_staff.desc": "Trigger 1: Normal melee attack.\nTrigger 2: Shoots a projectile.",
93+
"meatgun_module.meatweapons.x2_firing_mechanism": "Repeating Firing Mechanism",
94+
"meatgun_module.meatweapons.x2_firing_mechanism.desc": "2x rate of fire, 0.5x damage, 0.5x ammunition usage.",
95+
"meatgun_module.meatweapons.x8_firing_mechanism": "Electronic Firing Mechanism",
96+
"meatgun_module.meatweapons.x8_firing_mechanism.desc": "8x rate of fire, 0.125x damage, 0.125x ammunition usage.",
7797

7898
"item.meatweapons.blood_bullet_provider": "Blood Bullet Converter",
7999
"implant.meatweapons.blood_bullet_provider": "Blood Bullet Converter",
80100
"implant.meatweapons.blood_bullet_provider.desc_0": "Converts the user's blood into bullets when out of Meatgun ammunition.",
81101
"item.meatweapons.magazine_organ": "Magazine Organ",
82102
"implant.meatweapons.magazine_organ": "Magazine Organ",
83103
"implant.meatweapons.magazine_organ.desc_0": "Allows eating of up to eight ammunition items for storage.",
104+
"item.meatweapons.ammunition_generator": "Bullet Fabricator",
105+
"implant.meatweapons.ammunition_generator": "Bullet Fabricator",
106+
"implant.meatweapons.ammunition_generator.desc_0": "When installed in a Meatgun, gradually produces ammunition using metabolic substrate\nProduces 1 unit every 2s.",
84107

85108
"text.meatweapons.tinker_table.item_here": "Place Meatgun here",
86109
"tooltip.meatweapons.meatgun_module_1": "Meatgun Module - install in a Tinker Table",
@@ -93,5 +116,18 @@
93116
"tooltip.meatweapons.meatgun_module.remaining_complexity": "C: %s / %s",
94117

95118
"death.attack.meatweapons.bullet": "%1$s was pwned.",
96-
"death.attack.meatweapons.bullet.player": "%1$s was shot by %1$s."
119+
"death.attack.meatweapons.bullet.player": "%1$s was shot by %1$s.",
120+
"tooltip.meatweapons.meatgun_module.max_complexity": "Max complexity: %s",
121+
"tooltip.meatweapons.applicable": "Applicable slots: %s",
122+
"death.attack.meatweapons.meatgun_explosion": "%1$s was gibbed",
123+
"death.attack.meatweapons.meatgun_explosion.player": "%1$s was gibbed by %2$s",
124+
125+
"slot_type.meatweapons.normal": "NORMAL",
126+
"slot_type.meatweapons.barrel": "BARREL",
127+
"slot_type.meatweapons.drill": "DRILL",
128+
"slot_type.meatweapons.sight": "SIGHT",
129+
"slot_type.meatweapons.stock": "STOCK",
130+
"slot_type.meatweapons.firing_mechanism": "FIRING MECHANISM",
131+
132+
"message.meatweapons.item_implant.title": "Item Implant"
97133
}

projects/1.20-fabric/assets/neepmeat/meatweapons/lang/zh_cn.json

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"itemGroup.neepmeat.weapons": "NEEPMeat丨武器",
44

55
"item.meatweapons.small_ballistic_magazine": "小型弹道弹夹",
6-
"item.meatweapons.small_ballistic_magazine.lore_0": "能容纳12发弹药",
6+
"item.meatweapons.small_ballistic_magazine.lore_0": "能容纳60发弹药",
77
"item.meatweapons.medium_ballistic_magazine": "中型弹道弹夹",
8-
"item.meatweapons.medium_ballistic_magazine.lore_0": "能容纳24发弹药",
8+
"item.meatweapons.medium_ballistic_magazine.lore_0": "能容纳120发弹药",
99
"item.meatweapons.large_ballistic_magazine": "大型弹道弹匣",
10-
"item.meatweapons.large_ballistic_magazine.lore_0": "能容纳48发弹药",
10+
"item.meatweapons.large_ballistic_magazine.lore_0": "能容纳240发弹药",
1111
"item.meatweapons.small_energy_magazine": "小型蓄能器",
1212
"item.meatweapons.small_energy_magazine.lore_0": "能容纳12发弹药。",
1313
"item.meatweapons.medium_energy_magazine": "中型蓄能器",
@@ -24,10 +24,14 @@
2424
"item.meatweapons.iron_barrel": "铁枪管",
2525
"item.meatweapons.meat_steel_barrel": "肉钢枪管",
2626

27-
"item.meatweapons.meatgun_pistol": "肉质手枪",
28-
"item.meatweapons.meatgun_pistol.lore_0": "轻量级基础模块,附带手枪握把。\n最大复杂度:16",
29-
"item.meatweapons.meatgun_staff": "肉质手杖",
30-
"item.meatweapons.meatgun_staff.lore_0": "能像杖子一样手持的基础模块。最适合搭配近战附件。\n最大复杂度:16",
27+
"item.meatweapons.basic_pistol": "粗制肉枪",
28+
"item.meatweapons.basic_pistol.lore_0": "由复活的血肉随意拼接而成。\n自带手枪模块。\n会常态使用食物生成弹药。\n在物品栏中使用食物物品点击它即可喂食。",
29+
"item.meatweapons.meatgun_pistol": "手枪",
30+
"item.meatweapons.meatgun_pistol.lore_0": "轻量级肉质武器基座,附带手枪握把。",
31+
"item.meatweapons.meatgun_staff": "手杖",
32+
"item.meatweapons.meatgun_staff.lore_0": "能像杖子一样手持的肉质武器基座。最适合搭配近战附件。",
33+
"item.meatweapons.long_gun": "长枪",
34+
"item.meatweapons.long_gun.lore_0": "自带枪托的肉质武器基座,能承载更多模块。",
3135

3236
"item.meatweapons.assault_drill": "突击钻",
3337
"item.meatweapons.assault_drill.lore": "绞碎敌人!取悦朋友!绝对能让你在派对里人见人爱!",
@@ -44,26 +48,38 @@
4448
"key.meatweapons.down": "载具下降",
4549
"key.meatweapons.fire_secondary": "触发第二攻击",
4650
"key.meatweapons.use_item": "持武器时使用物品/放置方块",
51+
"key.meatweapons.trigger_1": "触发第一攻击",
52+
"key.meatweapons.trigger_2": "触发第二攻击",
4753

4854
"enchantment.meatweapons.spikes": "尖刺",
4955

56+
"meatgun_module.meatweapons.basic_pistol_base": "粗制肉枪",
5057
"meatgun_module.meatweapons.base_pistol": "手枪基座",
5158
"meatgun_module.meatweapons.base_staff": "手杖基座",
59+
"meatgun_module.meatweapons.base_long_gun": "长枪",
5260
"meatgun_module.meatweapons.pistol": "手枪",
5361
"meatgun_module.meatweapons.chugger": "重弹枪",
5462
"meatgun_module.meatweapons.bosher": "霰射枪",
5563
"meatgun_module.meatweapons.bosher.desc": "向较大范围发射多个弹片。",
56-
"meatgun_module.meatweapons.long_boi": "超长枪",
64+
"meatgun_module.meatweapons.long_boi": "威猛长枪",
65+
"meatgun_module.meatweapons.long_boi.desc": "发射出能击中多个目标的耀眼光束。\n按住触发键时进行充能,松开后即发射。发射前必须至少充能2秒,以两声哔声指示。\n充能4秒后,光束会获得爆炸能力。\n§c充能6.5秒后,脉冲仓会过载,导致使用者死亡。",
5766
"meatgun_module.meatweapons.grenade_launcher": "榴弹发射器",
5867
"meatgun_module.meatweapons.grenade_launcher.desc": "发射榴弹;榴弹会在方块表面反弹,撞到实体即会爆炸。",
5968
"meatgun_module.meatweapons.triple_carousel": "三座旋转架",
60-
"meatgun_module.meatweapons.triple_carousel.desc": "可安装三个模块。发射信号会送至最上方的模块。触发后旋转至下一模块。",
69+
"meatgun_module.meatweapons.triple_carousel.desc": "可安装三个模块。发射信号会触发最上方的模块。触发后旋转至下一模块。",
6170
"meatgun_module.meatweapons.double_carousel": "双座旋转架",
6271
"meatgun_module.meatweapons.underbarrel": "下挂架",
72+
"meatgun_module.meatweapons.underbarrel.desc": "可安装两个模块,两者按上下排布。\n第一攻击触发上方模块,第二攻击触发下方模块。",
6373
"meatgun_module.meatweapons.battery": "附加蓄能器",
6474
"meatgun_module.meatweapons.battery.desc": "额外存储16发能量弹药。",
6575
"meatgun_module.meatweapons.homing_brain": "追踪大脑",
6676
"meatgun_module.meatweapons.homing_brain.desc": "令武器发射的大型弹射物(实体)追踪目标。",
77+
"meatgun_module.meatweapons.bone_stealer": "抽骨器",
78+
"meatgun_module.meatweapons.bone_stealer.desc": "拔出受伤敌人的骨头,并将其转化为快捷栏中随机一把肉质武器的弹药。",
79+
"meatgun_module.meatweapons.slow_barrel": "缓速枪管",
80+
"meatgun_module.meatweapons.slow_barrel.desc": "安装于枪管槽位时,将弹射物变为实体。",
81+
"meatgun_module.meatweapons.basic_stock": "枪托",
82+
"meatgun_module.meatweapons.basic_stock.desc": "+100% 精准度",
6783
"meatgun_module.meatweapons.phage_ray_speed_modifier": "吞噬射线炮速度强化器",
6884
"meatgun_module.meatweapons.phage_ray_speed_modifier.desc": "增加吞噬射线炮的破坏速度。",
6985
"meatgun_module.meatweapons.base": "基座",
@@ -74,13 +90,20 @@
7490
"meatgun_module.meatweapons.halberd.desc": "触发第一攻击:普通近战攻击。\n触发第二攻击(疾跑):举起超过半秒后放下,向前突进。\n触发第二攻击(骑乘):勾住并拖行目标一段时间。",
7591
"meatgun_module.meatweapons.shock_staff": "震击法杖",
7692
"meatgun_module.meatweapons.shock_staff.desc": "触发第一攻击:普通近战攻击。\n触发第二攻击:发射一个弹射物。",
93+
"meatgun_module.meatweapons.x2_firing_mechanism": "连发装置",
94+
"meatgun_module.meatweapons.x2_firing_mechanism.desc": "发射速率变为2倍,伤害变为0.5倍,弹药消耗量变为0.5倍。",
95+
"meatgun_module.meatweapons.x8_firing_mechanism": "电击发装置",
96+
"meatgun_module.meatweapons.x8_firing_mechanism.desc": "发射速率变为8倍,伤害变为0.125倍,弹药消耗量变为0.125倍。",
7797

7898
"item.meatweapons.blood_bullet_provider": "血弹转换器",
7999
"implant.meatweapons.blood_bullet_provider": "血弹转换器",
80100
"implant.meatweapons.blood_bullet_provider.desc_0": "肉质武器弹药耗尽后,允许使用持有者的血液作为弹药。",
81101
"item.meatweapons.magazine_organ": "弹匣器官",
82102
"implant.meatweapons.magazine_organ": "弹匣器官",
83103
"implant.meatweapons.magazine_organ.desc_0": "可吞噬最多8份弹药并暂存。",
104+
"item.meatweapons.ammunition_generator": "弹药构装器",
105+
"implant.meatweapons.ammunition_generator": "弹药构装器",
106+
"implant.meatweapons.ammunition_generator.desc_0": "安装于肉质武器时,会使用代谢底物制造弹药。\n每2秒产出1发弹药。",
84107

85108
"text.meatweapons.tinker_table.item_here": "在此处放置肉质武器",
86109
"tooltip.meatweapons.meatgun_module_1": "肉质武器模块,需在改装台处安装",
@@ -92,6 +115,19 @@
92115
"tooltip.meatweapons.meatgun_module.complexity": "复杂度:%s",
93116
"tooltip.meatweapons.meatgun_module.remaining_complexity": "复杂度:%s / %s",
94117

95-
"death.attack.meatweapons.bullet": "%1$s被击杀了。",
96-
"death.attack.meatweapons.bullet.player": "%1$s被%2$s击毙了。"
118+
"death.attack.meatweapons.bullet": "%1$s被击杀了",
119+
"death.attack.meatweapons.bullet.player": "%1$s被%2$s击毙了",
120+
"tooltip.meatweapons.meatgun_module.max_complexity": "最大复杂度:%s",
121+
"tooltip.meatweapons.applicable": "适用槽位:%s",
122+
"death.attack.meatweapons.meatgun_explosion": "%1$s被打成了碎末",
123+
"death.attack.meatweapons.meatgun_explosion.player": "%1$s被%2$s打成了碎末",
124+
125+
"slot_type.meatweapons.normal": "普通",
126+
"slot_type.meatweapons.barrel": "枪管",
127+
"slot_type.meatweapons.drill": "钻具",
128+
"slot_type.meatweapons.sight": "瞄具",
129+
"slot_type.meatweapons.stock": "枪托",
130+
"slot_type.meatweapons.firing_mechanism": "击发装置",
131+
132+
"message.meatweapons.item_implant.title": "物品植入物"
97133
}

projects/1.20-fabric/assets/neepmeat/neepmeat/docs/thord/en_us/thord_words.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Prints the top stack entry.
1010
Places the current value of the program counter (the address of the currently executed instruction) on the top of the stack.
1111

1212
\cat{words}
13-
# Words
13+
# Defining Words
1414

1515
## :
1616

@@ -159,18 +159,22 @@ begin
159159

160160
Marks the end of a begin-until construct. Consumes the last stack entry and branches back to the previous `BEGIN` if it is true.
161161

162-
## FOR ( n1 n2 -- ) (immediate)
162+
## DO ( n1 n2 -- ) (immediate)
163163

164164
Begins a do-loop construct. Terminated by `LOOP` or `+LOOP`.
165165

166166
Checks n1 and n2 for equality and branches to the end of the loop if this is the case. Otherwise, the values are moved to the return stack and the loop begins.
167167

168-
The following code section will repeat until loop index reaches n1, starting at n2.
168+
The following code section will repeat until loop index reaches 10, starting at 0.
169169

170170
```
171171
10 0 do i . loop
172172
```
173173

174+
## FOR ( n1 n2 -- ) (immediate)
175+
176+
Same as `DO`
177+
174178
## LOOP ( -- ) (immediate)
175179

176180
Increments loop index and branches to the start of the loop if it is lower than the upper bound.
@@ -237,6 +241,26 @@ Tests if n1 is less than or equal to n2. Equivalent to NEEPASM `LTEQ`.
237241

238242
Tests if n1 is greater than or equal to n2. Equivalent to NEEPASM `GTEQ`.
239243

244+
\cat{conversions}
245+
# Type Conversions
246+
247+
## \>STR ( x1 -- s1 )
248+
249+
Converts the top stack item to a string.
250+
251+
```
252+
123 >STR
253+
```
254+
255+
## \>INT (x1 -- n1 )
256+
257+
Converts the top stack item to an integer. Will cause an error if the conversion will not work.
258+
259+
```
260+
"123" >INT # OK
261+
"hello" >INT # Error
262+
```
263+
240264
\cat{memory}
241265
# Memory
242266

projects/1.20-fabric/assets/neepmeat/neepmeat/docs/thord/zh_cn/thord_words.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
将程序计数器(当前所执行指令的地址)的当前值压入栈顶。
1111

1212
\cat{words}
13-
#
13+
# 词的定义
1414

1515
## :
1616

@@ -160,18 +160,22 @@ begin
160160

161161
标记begin-until结构的结束。会取走栈顶元素,若为true则跳转至上一个`BEGIN`
162162

163-
## FOR ( n1 n2 -- )(立即词)
163+
## DO ( n1 n2 -- )(立即词)
164164

165165
标记do-loop结构的起始。该结构以`LOOP``+LOOP`结束。
166166

167167
会检查n1与n2相等与否,若相等则跳转至循环结束处;否则将值移动至返回栈并进入循环。
168168

169-
下方代码段中的循环索引从n2起始,此后进入循环,并在索引达到n1时结束循环
169+
下方代码段中的循环索引从0起始,此后进入循环,并在索引达到10时结束循环
170170

171171
```
172172
10 0 do i . loop
173173
```
174174

175+
## FOR ( n1 n2 -- )(立即词)
176+
177+
`DO`一致。
178+
175179
## LOOP ( -- )(立即词)
176180

177181
令循环索引递增,若运算结果小于上界则跳转至循环起始处。
@@ -238,6 +242,27 @@ begin
238242

239243
检查n1是否大于等于n2。与NEEPASM的`GTEQ`等价。
240244

245+
\cat{conversions}
246+
# 类型转换
247+
248+
## \>STR ( x1 -- s1 )
249+
250+
将栈顶元素转换为字符串。
251+
252+
```
253+
123 >STR
254+
```
255+
256+
## \>INT (x1 -- n1 )
257+
258+
将栈顶元素转换为整型值。无法转换会产生错误。
259+
260+
```
261+
"123" >INT # OK
262+
"hello" >INT # Error [1]
263+
```
264+
[1] 错误
265+
241266
\cat{memory}
242267
# 内存
243268

0 commit comments

Comments
 (0)