mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-11-19 19:58:21 +01:00
8 lines
38 KiB
JavaScript
8 lines
38 KiB
JavaScript
|
ace.define("ace/snippets/gobstones",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# scope: gobstones\n\n# program\nsnippet program\n program {\n ${1:// cuerpo...}\n }\n\n# interactive program\nsnippet interactive program\n interactive program {\n ${1:INIT} -> { ${2:// cuerpo...} }\n ${3:TIMEOUT(${4:5000}) -> { ${5:// cuerpo...} }\n ${6:K_ENTER} -> { ${7:// cuerpo...} }\n _ -> {}\n }\n\n# procedure\nsnippet procedure\n procedure ${1:Nombre}(${2:parametros}) {\n ${3:// cuerpo...}\n }\n\n# function\nsnippet function\n function ${1:nombre}(${2:parametros}) {\n return (${3:expresi\u00f3n..})\n }\n\n# return\nsnippet return\n return (${1:expresi\u00f3n...})\n\n# type\nsnippet type\n type ${1:Nombre}\n\n# is variant\nsnippet is variant\n is variant {\n case ${1:NombreDelValor1} {}\n case ${2:NombreDelValor2} {}\n case ${3:NombreDelValor3} {}\n case ${4:NombreDelValor4} {}\n }\n\n# is record\nsnippet is record\n is record {\n field ${1:campo1} // ${2:Tipo}\n field ${3:campo2} // ${4:Tipo}\n field ${5:campo3} // ${6:Tipo}\n field ${7:campo4} // ${8:Tipo}\n }\n\n# type _ is variant\nsnippet type _ is variant\n type ${1:Nombre} is variant {\n case ${2:NombreDelValor1} {}\n case ${3:NombreDelValor2} {}\n case ${4:NombreDelValor3} {}\n case ${5:NombreDelValor4} {}\n }\n\n# type _ is record\nsnippet type _ is record\n type ${1:Nombre} is record {\n field ${2:campo1} // ${3:Tipo}\n field ${4:campo2} // ${5:Tipo}\n field ${6:campo3} // ${7:Tipo}\n field ${8:campo4} // ${9:Tipo}\n }\n\n# repeat\nsnippet repeat\n repeat ${1:cantidad} {\n ${2:// cuerpo...}\n }\n\n# foreach\nsnippet foreach\n foreach ${1:\u00edndice} in ${2:lista} {\n ${3:// cuerpo...}\n }\n\n# while\nsnippet while\n while (${1?:condici\u00f3n}) {\n ${2:// cuerpo...}\n }\n\n# if\nsnippet if\n if (${1?:condici\u00f3n}) {\n ${2:// cuerpo...}\n }\n\n# elseif\nsnippet elseif\n elseif (${1?:condici\u00f3n}) {\n ${2:// cuerpo...}\n }\n\n# else\nsnippet else\n else {\n ${1:// cuerpo...}\n }\n\n# if (con else)\nsnippet if (con else)\n if (${1:condici\u00f3n}) {\n ${2:// cuerpo...}\n } else {\n ${3:// cuerpo....}\n }\n\n# if (con elseif)\nsnippet if (con elseif)\n if (${1:condici\u00f3n}) {\n ${2:// cuerpo...}\n } elseif (${3:condici\u00f3n}) {\n ${4:// cuerpo...}\n }\n\n# if (con elseif y else)\nsnippet if (con elseif y else)\n if (${1:condici\u00f3n}) {\n ${2:// cuerpo...}\n } elseif (${3:condici\u00f3n}) {\n ${4:// cuerpo...}\n } else {\n ${5:// cuerpo....}\n }\n\n# if (con 3 elseif)\nsnippet if (con 3 elseif)\n if (${1:condici\u00f3n}) {\n ${2:// cuerpo...}\n } elseif (${3:condici\u00f3n}) {\n ${4:// cuerpo...}\n } elseif (${5:condici\u00f3n}) {\n ${6:// cuerpo...}\n } elseif (${7:condici\u00f3n}) {\n ${8:// cuerpo...}\n }\n\n# choose (2 valores)\nsnippet choose (2 valores)\n choose\n ${1:Valor1} when (${2:condici\u00f3n})\n ${3:Valor2} otherwise\n\n# choose (2 valores y boom)\nsnippet choose (2 valores y boom)\n choose\n ${1:Valor1} when (${2:condici\u00f3n})\n ${3:Valor2} when (${4:condici\u00f3n})\n ${5:Valor3} when (${6:condici\u00f3n})\n ${7:Valor4} when (${8:condici\u00f3n})\n boom("${9:No es un valor v\u00e1lido}") otherwise\n\n# matching (4 valores)\nsnippet matching (4 valores)\n matching (${1:variable}) select\n ${2:Valor1} on ${3:opci\u00f3n1}\n ${4:Valor2} on ${5:opci\u00f3n2}\n ${6:Valor3} on ${7:opci\u00f3n3}\n ${8:Valor4} on ${9:opci\u00f3n4}\n boom("${10:No es un valor v\u00e1lido}") otherwise\n\n# select (4 casos)\nsnippet select (4 casos)\n select\n ${1:Valor1} on (${2:opci\u00f3n1})\n ${3:Valor2} on (${4:opci\u00f3n2})\n ${5:Valor3} on (${6:opci\u00f3n3})\n ${7:Valor4} on (${8:opci\u00f3n4})\n boom("${9:No es un valor v\u00e1lido}") otherwise\n\n# switch\nsnippet switch\n switch (${1:variable}) {\n ${2:Valor1} -> {${3:// cuerpo...}}\n ${4:Valor2} -> {${5:// cuerpo...}}\n ${6:Valor3} -> {${7:// cuerpo...}}\n ${8:Valor4} -> {${9:// cuerpo...}}\n _ -> {${10:// cuerpo...}}\n }\n\n# Poner\nsnippet Poner\n Poner(${1:color})\n\n# Sacar\nsnippet Sacar\n Sacar(${1:color})\n\n# M
|
||
|
ace.require(["ace/snippets/gobstones"], function(m) {
|
||
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
||
|
module.exports = m;
|
||
|
}
|
||
|
});
|
||
|
})();
|
||
|
|