Sync some constants, operators, and functions for skin editor. (2)

This commit is contained in:
2023-03-15 10:02:09 +08:00
parent df5133a91a
commit d72216de8b
3 changed files with 66 additions and 8 deletions

View File

@@ -36,13 +36,17 @@ var inputlists = {
var statementlists = {
"statement.comp": ["input.comp"],
"statement.define": ["input.ident", "exp"],
"statement.exp.cast.vector2number": ["exp.vector"],
"statement.exp.cast.number2vector": ["exp.number"],
"statement.exp.const.w": [],
"statement.exp.const.h": [],
"statement.exp.const.inf": [],
"statement.exp.const.null": [],
"statement.exp.const.true": [],
"statement.exp.const.false": [],
"statement.exp.literal.ident": ["input.ident"],
"statement.exp.literal.number": ["input.number"],
"statement.exp.literal.string": ["input.string"],
"statement.exp.op.add": ["exp.number", "exp.number"],
"statement.exp.op.sub": ["exp.number", "exp.number"],
"statement.exp.op.mul": ["exp.number", "exp.number"],
@@ -64,33 +68,54 @@ var statementlists = {
"statement.exp.func.abs": ["exp.number"],
"statement.exp.func.interval": ["exp.number", "exp.number", "exp.number"],
"statement.exp.func.is": ["exp", "exp"],
"statement.exp.func.cubic_bezier": ["exp.number", "exp.number", "exp.number", "exp.number", "exp.number"],
"statement.exp.func.ease": ["exp.number"],
"statement.exp.func.ease_in": ["exp.number"],
"statement.exp.func.ease_out": ["exp.number"],
"statement.exp.func.ease_in_out": ["exp.number"],
"statement.exp.func.screen_edge": ["exp.number"],
"statement.exp.func.anim": ["exp.vector", "exp.vector", "exp.number"],
"statement.obj": ["block.element"],
"statement.prop": ["input.prop", "exp"],
"statement.select": ["block.select", "block.element"],
"statement.select.anchor": ["input.identanchor"],
"statement.select.atanchor": ["input.identanchor"],
"statement.select.exp": ["exp"],
"statement.select.exp": ["exp.number"],
"statement.select.type": ["input.type"],
};
var explists = {
"exp": ["#exp.array", "#exp.error", "#exp.identifier", "#exp.null", "#exp.number", "#exp.string", "#exp.vector"],
"exp": ["#exp.array", "#exp.identifier", "#exp.number", "#exp.string", "#exp.vector"],
"exp.any": [
"statement.exp.literal.ident",
"statement.exp.literal.ident", "statement.exp.literal.identforced",
"statement.exp.op.and", "statement.exp.op.or"
],
"exp.identifier": [
"statement.exp.const.null",
"#exp.any"
],
"exp.number": [
"statement.exp.literal.number",
"statement.exp.literal.number", "statement.exp.cast.vector2number",
"statement.exp.const.w", "statement.exp.const.h", "statement.exp.const.inf", "statement.exp.const.true", "statement.exp.const.false",
"statement.exp.op.add", "statement.exp.op.sub", "statement.exp.op.mul", "statement.exp.op.div", "statement.exp.op.mod",
"statement.exp.op.add1", "statement.exp.op.sub1", "statement.exp.op.not",
"statement.exp.op.at", "statement.exp.op.lt", "statement.exp.op.eq", "statement.exp.op.gt",
"statement.exp.func.int", "statement.exp.func.clamp", "statement.exp.func.min", "statement.exp.func.max", "statement.exp.func.abs",
"statement.exp.func.interval", "statement.exp.func.is",
"statement.exp.func.anim", "statement.exp.func.cubic_bezier", "statement.exp.func.ease", "statement.exp.func.ease_in", "statement.exp.func.ease_out", "statement.exp.func.ease_in_out",
"statement.exp.func.cubic_bezier", "statement.exp.func.ease", "statement.exp.func.ease_in", "statement.exp.func.ease_out", "statement.exp.func.ease_in_out",
"statement.exp.func.attack_timing", "statement.exp.func.enter_timing", "statement.exp.func.release_timing", "statement.exp.func.leave_timing", "statement.exp.func.contact_timing",
"#exp.any"
],
"exp.string": [
"statement.exp.literal.string",
"#exp.any"
],
"exp.vector": [
"statement.exp.cast.number2vector",
"statement.exp.func.screen_edge",
"statement.exp.func.anim",
"#exp.any"
],
};
window.onload = function () {