[{"data":1,"prerenderedAt":2549},["Reactive",2],{"content-query-tpTHgMuQVr":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"image":11,"head":12,"updated":45,"tags":46,"body":50,"_type":2544,"_id":2545,"_source":2546,"_file":2547,"_extension":2548},"/blog/creacion-de-un-lenguaje-tokens","blog",false,"","Creación de un lenguaje: tokens","¡Continuamos nuestra serie sobre cómo crear un lenguaje de programación! En esta ocasión, vamos a ver que son los tokens. Estas unidades mínimas en el código fuente son fundamentales para comprender la estructura de un programa. Descubre cómo se clasifican y representan los tokens en nuestro nuevo lenguaje. ¡No te lo pierdas!","2023-05-22T19:17:42.406Z","/images/posts/codexivo-token.png",{"meta":13},[14,16,19,22,25,28,30,33,36,39,41,43],{"name":15,"content":8},"title",{"name":17,"content":18},"description","¡Continuamos nuestra serie sobre cómo crear un lenguaje de programación! En esta ocasión, vamos a ver que son los tokens. Estas unidades mínimas en el código fuente son fundamentales para comprender la estructura de un programa. Descubre cómo se clasifican y representan los tokens en nuestro nuevo lenguaje. ¡No te lo pierdas! #CreandoUnLenguaje #TokensEnCodexivo",{"name":20,"content":21},"keywords","codexivo, lenguaje de programación, tokens",{"name":23,"content":24},"author","Uriel Curiel",{"name":26,"content":27},"og:image","https://urielcuriel.dev/images/posts/codexivo-token.png",{"name":29,"content":8},"og:title",{"name":31,"content":32},"og:description","Descripción breve de tu blog post para redes sociales",{"name":34,"content":35},"twitter:card","summary_large_image",{"name":37,"content":38},"twitter:username","@urielcuriel",{"name":40,"content":18},"twitter:description",{"name":42,"content":8},"twitter:title",{"name":44,"content":27},"twitter:image","2023-05-16T10:49:35.000Z",[47,48,49],"codexivo","lenguaje de programación","tokens",{"type":51,"children":52,"toc":2542},"root",[53,61,66,92,97,102,124,1258,1270,1989,1994,2500,2505,2514,2526,2531,2536],{"type":54,"tag":55,"props":56,"children":57},"element","p",{},[58],{"type":59,"value":60},"text","Continuando con nuestra serie de posts sobre la creación de un lenguaje de programación, en esta entrega nos adentraremos en el concepto de tokens. Un token es la unidad básica en el código fuente de un programa Codexivo. Representa una parte indivisible del código, como una palabra clave, un identificador, un operador o un literal.",{"type":54,"tag":55,"props":62,"children":63},{},[64],{"type":59,"value":65},"Un token en Codexivo consta de dos componentes principales:",{"type":54,"tag":67,"props":68,"children":69},"ol",{},[70,82],{"type":54,"tag":71,"props":72,"children":73},"li",{},[74,80],{"type":54,"tag":75,"props":76,"children":77},"strong",{},[78],{"type":59,"value":79},"Tipo de Token (TokenType):",{"type":59,"value":81}," Indica la categoría o clasificación del token. Por ejemplo, TokenType.IDENT para identificadores, TokenType.KEYWORD para palabras clave, TokenType.OPERATOR para operadores, TokenType.LITERAL para literales, etc. El tipo de token proporciona información sobre la naturaleza del token y cómo debe ser interpretado.",{"type":54,"tag":71,"props":83,"children":84},{},[85,90],{"type":54,"tag":75,"props":86,"children":87},{},[88],{"type":59,"value":89},"Literal:",{"type":59,"value":91}," Es el valor textual asociado al token. Representa la representación exacta del elemento léxico en el código fuente. Por ejemplo, para un token TokenType.IDENT que representa un identificador, el literal podría ser el nombre del identificador (\"x\", \"foo\", etc.). Para un token TokenType.LITERAL que representa un valor literal, el literal podría ser un número (\"123\", \"3.14\", etc.) o el texto entre comillas de una cadena (\"Hola\", \"mundo\", etc.).",{"type":54,"tag":55,"props":93,"children":94},{},[95],{"type":59,"value":96},"Además de estos componentes esenciales, un token en Codexivo puede incluir información adicional dependiendo del contexto y las necesidades del analizador (parser), como la ubicación en el código fuente (línea y columna) para fines de diagnóstico de errores y resaltado de sintaxis.",{"type":54,"tag":55,"props":98,"children":99},{},[100],{"type":59,"value":101},"En resumen, un token en Codexivo está compuesto por un tipo de token que indica su categoría o clasificación, y un literal que representa su valor textual. También puede contener detalles adicionales, como la ubicación en el código fuente, según sea necesario.",{"type":54,"tag":55,"props":103,"children":104},{},[105,107,114,116,122],{"type":59,"value":106},"En el caso de Codexivo, hemos definido los siguientes ",{"type":54,"tag":108,"props":109,"children":111},"code",{"className":110},[],[112],{"type":59,"value":113},"TokenTypes",{"type":59,"value":115}," que incluyen operadores básicos, y hemos simplificado otros, como los números. En algunos lenguajes, los números se separan en diferentes tipos, como enteros, flotantes y dobles. Sin embargo, en Codexivo utilizamos el ",{"type":54,"tag":108,"props":117,"children":119},{"className":118},[],[120],{"type":59,"value":121},"TokenType.NUM",{"type":59,"value":123}," para manejar tanto enteros como flotantes sin distinción, similar a lenguajes como JavaScript.",{"type":54,"tag":125,"props":126,"children":130},"pre",{"className":127,"code":128,"language":129,"meta":7,"style":7},"language-typescript shiki shiki-themes nord","export enum TokenType {\n  AND = \"AND\",\n  ASSIGN = \"ASSIGN\",\n  ASTERISK = \"ASTERISK\",\n  BANG = \"BANG\",\n  COMMA = \"COMMA\",\n  DO = \"DO\",\n  ELSE = \"ELSE\",\n  EOF = \"EOF\",\n  EQ = \"EQ\",\n  FALSE = \"FALSE\",\n  FOR = \"FOR\",\n  FUNCTION = \"FUNCTION\",\n  GT = \"GT\",\n  GT_EQ = \"GT_EQ\",\n  IDENT = \"IDENT\",\n  IF = \"IF\",\n  ILLEGAL = \"ILLEGAL\",\n  LBRACE = \"LBRACE\",\n  LET = \"LET\",\n  LPAREN = \"LPAREN\",\n  LT = \"LT\",\n  LT_EQ = \"LT_EQ\",\n  MINUS = \"MINUS\",\n  NEQ = \"NEQ\",\n  NOT = \"NOT\",\n  NUM = \"NUM\",\n  OR = \"OR\",\n  PLUS = \"PLUS\",\n  PLUS_EQ = \"PLUS_EQ\",\n  RBRACE = \"RBRACE\",\n  RETURN = \"RETURN\",\n  RPAREN = \"RPAREN\",\n  SEMICOLON = \"SEMICOLON\",\n  SLASH = \"SLASH\",\n  TRUE = \"TRUE\",\n  WHILE = \"WHILE\",\n}\n","typescript",[131],{"type":54,"tag":108,"props":132,"children":133},{"__ignoreMap":7},[134,163,199,229,259,289,319,349,379,409,439,469,499,529,559,589,619,649,679,709,739,769,799,829,859,889,919,949,979,1009,1039,1069,1099,1129,1159,1189,1219,1249],{"type":54,"tag":135,"props":136,"children":139},"span",{"class":137,"line":138},"line",1,[140,146,151,157],{"type":54,"tag":135,"props":141,"children":143},{"style":142},"--shiki-default:#81A1C1",[144],{"type":59,"value":145},"export",{"type":54,"tag":135,"props":147,"children":148},{"style":142},[149],{"type":59,"value":150}," enum",{"type":54,"tag":135,"props":152,"children":154},{"style":153},"--shiki-default:#8FBCBB",[155],{"type":59,"value":156}," TokenType",{"type":54,"tag":135,"props":158,"children":160},{"style":159},"--shiki-default:#ECEFF4",[161],{"type":59,"value":162}," {\n",{"type":54,"tag":135,"props":164,"children":166},{"class":137,"line":165},2,[167,173,178,183,189,194],{"type":54,"tag":135,"props":168,"children":170},{"style":169},"--shiki-default:#D8DEE9",[171],{"type":59,"value":172},"  AND",{"type":54,"tag":135,"props":174,"children":175},{"style":142},[176],{"type":59,"value":177}," =",{"type":54,"tag":135,"props":179,"children":180},{"style":159},[181],{"type":59,"value":182}," \"",{"type":54,"tag":135,"props":184,"children":186},{"style":185},"--shiki-default:#A3BE8C",[187],{"type":59,"value":188},"AND",{"type":54,"tag":135,"props":190,"children":191},{"style":159},[192],{"type":59,"value":193},"\"",{"type":54,"tag":135,"props":195,"children":196},{"style":159},[197],{"type":59,"value":198},",\n",{"type":54,"tag":135,"props":200,"children":202},{"class":137,"line":201},3,[203,208,212,216,221,225],{"type":54,"tag":135,"props":204,"children":205},{"style":169},[206],{"type":59,"value":207},"  ASSIGN",{"type":54,"tag":135,"props":209,"children":210},{"style":142},[211],{"type":59,"value":177},{"type":54,"tag":135,"props":213,"children":214},{"style":159},[215],{"type":59,"value":182},{"type":54,"tag":135,"props":217,"children":218},{"style":185},[219],{"type":59,"value":220},"ASSIGN",{"type":54,"tag":135,"props":222,"children":223},{"style":159},[224],{"type":59,"value":193},{"type":54,"tag":135,"props":226,"children":227},{"style":159},[228],{"type":59,"value":198},{"type":54,"tag":135,"props":230,"children":232},{"class":137,"line":231},4,[233,238,242,246,251,255],{"type":54,"tag":135,"props":234,"children":235},{"style":169},[236],{"type":59,"value":237},"  ASTERISK",{"type":54,"tag":135,"props":239,"children":240},{"style":142},[241],{"type":59,"value":177},{"type":54,"tag":135,"props":243,"children":244},{"style":159},[245],{"type":59,"value":182},{"type":54,"tag":135,"props":247,"children":248},{"style":185},[249],{"type":59,"value":250},"ASTERISK",{"type":54,"tag":135,"props":252,"children":253},{"style":159},[254],{"type":59,"value":193},{"type":54,"tag":135,"props":256,"children":257},{"style":159},[258],{"type":59,"value":198},{"type":54,"tag":135,"props":260,"children":262},{"class":137,"line":261},5,[263,268,272,276,281,285],{"type":54,"tag":135,"props":264,"children":265},{"style":169},[266],{"type":59,"value":267},"  BANG",{"type":54,"tag":135,"props":269,"children":270},{"style":142},[271],{"type":59,"value":177},{"type":54,"tag":135,"props":273,"children":274},{"style":159},[275],{"type":59,"value":182},{"type":54,"tag":135,"props":277,"children":278},{"style":185},[279],{"type":59,"value":280},"BANG",{"type":54,"tag":135,"props":282,"children":283},{"style":159},[284],{"type":59,"value":193},{"type":54,"tag":135,"props":286,"children":287},{"style":159},[288],{"type":59,"value":198},{"type":54,"tag":135,"props":290,"children":292},{"class":137,"line":291},6,[293,298,302,306,311,315],{"type":54,"tag":135,"props":294,"children":295},{"style":169},[296],{"type":59,"value":297},"  COMMA",{"type":54,"tag":135,"props":299,"children":300},{"style":142},[301],{"type":59,"value":177},{"type":54,"tag":135,"props":303,"children":304},{"style":159},[305],{"type":59,"value":182},{"type":54,"tag":135,"props":307,"children":308},{"style":185},[309],{"type":59,"value":310},"COMMA",{"type":54,"tag":135,"props":312,"children":313},{"style":159},[314],{"type":59,"value":193},{"type":54,"tag":135,"props":316,"children":317},{"style":159},[318],{"type":59,"value":198},{"type":54,"tag":135,"props":320,"children":322},{"class":137,"line":321},7,[323,328,332,336,341,345],{"type":54,"tag":135,"props":324,"children":325},{"style":169},[326],{"type":59,"value":327},"  DO",{"type":54,"tag":135,"props":329,"children":330},{"style":142},[331],{"type":59,"value":177},{"type":54,"tag":135,"props":333,"children":334},{"style":159},[335],{"type":59,"value":182},{"type":54,"tag":135,"props":337,"children":338},{"style":185},[339],{"type":59,"value":340},"DO",{"type":54,"tag":135,"props":342,"children":343},{"style":159},[344],{"type":59,"value":193},{"type":54,"tag":135,"props":346,"children":347},{"style":159},[348],{"type":59,"value":198},{"type":54,"tag":135,"props":350,"children":352},{"class":137,"line":351},8,[353,358,362,366,371,375],{"type":54,"tag":135,"props":354,"children":355},{"style":169},[356],{"type":59,"value":357},"  ELSE",{"type":54,"tag":135,"props":359,"children":360},{"style":142},[361],{"type":59,"value":177},{"type":54,"tag":135,"props":363,"children":364},{"style":159},[365],{"type":59,"value":182},{"type":54,"tag":135,"props":367,"children":368},{"style":185},[369],{"type":59,"value":370},"ELSE",{"type":54,"tag":135,"props":372,"children":373},{"style":159},[374],{"type":59,"value":193},{"type":54,"tag":135,"props":376,"children":377},{"style":159},[378],{"type":59,"value":198},{"type":54,"tag":135,"props":380,"children":382},{"class":137,"line":381},9,[383,388,392,396,401,405],{"type":54,"tag":135,"props":384,"children":385},{"style":169},[386],{"type":59,"value":387},"  EOF",{"type":54,"tag":135,"props":389,"children":390},{"style":142},[391],{"type":59,"value":177},{"type":54,"tag":135,"props":393,"children":394},{"style":159},[395],{"type":59,"value":182},{"type":54,"tag":135,"props":397,"children":398},{"style":185},[399],{"type":59,"value":400},"EOF",{"type":54,"tag":135,"props":402,"children":403},{"style":159},[404],{"type":59,"value":193},{"type":54,"tag":135,"props":406,"children":407},{"style":159},[408],{"type":59,"value":198},{"type":54,"tag":135,"props":410,"children":412},{"class":137,"line":411},10,[413,418,422,426,431,435],{"type":54,"tag":135,"props":414,"children":415},{"style":169},[416],{"type":59,"value":417},"  EQ",{"type":54,"tag":135,"props":419,"children":420},{"style":142},[421],{"type":59,"value":177},{"type":54,"tag":135,"props":423,"children":424},{"style":159},[425],{"type":59,"value":182},{"type":54,"tag":135,"props":427,"children":428},{"style":185},[429],{"type":59,"value":430},"EQ",{"type":54,"tag":135,"props":432,"children":433},{"style":159},[434],{"type":59,"value":193},{"type":54,"tag":135,"props":436,"children":437},{"style":159},[438],{"type":59,"value":198},{"type":54,"tag":135,"props":440,"children":442},{"class":137,"line":441},11,[443,448,452,456,461,465],{"type":54,"tag":135,"props":444,"children":445},{"style":169},[446],{"type":59,"value":447},"  FALSE",{"type":54,"tag":135,"props":449,"children":450},{"style":142},[451],{"type":59,"value":177},{"type":54,"tag":135,"props":453,"children":454},{"style":159},[455],{"type":59,"value":182},{"type":54,"tag":135,"props":457,"children":458},{"style":185},[459],{"type":59,"value":460},"FALSE",{"type":54,"tag":135,"props":462,"children":463},{"style":159},[464],{"type":59,"value":193},{"type":54,"tag":135,"props":466,"children":467},{"style":159},[468],{"type":59,"value":198},{"type":54,"tag":135,"props":470,"children":472},{"class":137,"line":471},12,[473,478,482,486,491,495],{"type":54,"tag":135,"props":474,"children":475},{"style":169},[476],{"type":59,"value":477},"  FOR",{"type":54,"tag":135,"props":479,"children":480},{"style":142},[481],{"type":59,"value":177},{"type":54,"tag":135,"props":483,"children":484},{"style":159},[485],{"type":59,"value":182},{"type":54,"tag":135,"props":487,"children":488},{"style":185},[489],{"type":59,"value":490},"FOR",{"type":54,"tag":135,"props":492,"children":493},{"style":159},[494],{"type":59,"value":193},{"type":54,"tag":135,"props":496,"children":497},{"style":159},[498],{"type":59,"value":198},{"type":54,"tag":135,"props":500,"children":502},{"class":137,"line":501},13,[503,508,512,516,521,525],{"type":54,"tag":135,"props":504,"children":505},{"style":169},[506],{"type":59,"value":507},"  FUNCTION",{"type":54,"tag":135,"props":509,"children":510},{"style":142},[511],{"type":59,"value":177},{"type":54,"tag":135,"props":513,"children":514},{"style":159},[515],{"type":59,"value":182},{"type":54,"tag":135,"props":517,"children":518},{"style":185},[519],{"type":59,"value":520},"FUNCTION",{"type":54,"tag":135,"props":522,"children":523},{"style":159},[524],{"type":59,"value":193},{"type":54,"tag":135,"props":526,"children":527},{"style":159},[528],{"type":59,"value":198},{"type":54,"tag":135,"props":530,"children":532},{"class":137,"line":531},14,[533,538,542,546,551,555],{"type":54,"tag":135,"props":534,"children":535},{"style":169},[536],{"type":59,"value":537},"  GT",{"type":54,"tag":135,"props":539,"children":540},{"style":142},[541],{"type":59,"value":177},{"type":54,"tag":135,"props":543,"children":544},{"style":159},[545],{"type":59,"value":182},{"type":54,"tag":135,"props":547,"children":548},{"style":185},[549],{"type":59,"value":550},"GT",{"type":54,"tag":135,"props":552,"children":553},{"style":159},[554],{"type":59,"value":193},{"type":54,"tag":135,"props":556,"children":557},{"style":159},[558],{"type":59,"value":198},{"type":54,"tag":135,"props":560,"children":562},{"class":137,"line":561},15,[563,568,572,576,581,585],{"type":54,"tag":135,"props":564,"children":565},{"style":169},[566],{"type":59,"value":567},"  GT_EQ",{"type":54,"tag":135,"props":569,"children":570},{"style":142},[571],{"type":59,"value":177},{"type":54,"tag":135,"props":573,"children":574},{"style":159},[575],{"type":59,"value":182},{"type":54,"tag":135,"props":577,"children":578},{"style":185},[579],{"type":59,"value":580},"GT_EQ",{"type":54,"tag":135,"props":582,"children":583},{"style":159},[584],{"type":59,"value":193},{"type":54,"tag":135,"props":586,"children":587},{"style":159},[588],{"type":59,"value":198},{"type":54,"tag":135,"props":590,"children":592},{"class":137,"line":591},16,[593,598,602,606,611,615],{"type":54,"tag":135,"props":594,"children":595},{"style":169},[596],{"type":59,"value":597},"  IDENT",{"type":54,"tag":135,"props":599,"children":600},{"style":142},[601],{"type":59,"value":177},{"type":54,"tag":135,"props":603,"children":604},{"style":159},[605],{"type":59,"value":182},{"type":54,"tag":135,"props":607,"children":608},{"style":185},[609],{"type":59,"value":610},"IDENT",{"type":54,"tag":135,"props":612,"children":613},{"style":159},[614],{"type":59,"value":193},{"type":54,"tag":135,"props":616,"children":617},{"style":159},[618],{"type":59,"value":198},{"type":54,"tag":135,"props":620,"children":622},{"class":137,"line":621},17,[623,628,632,636,641,645],{"type":54,"tag":135,"props":624,"children":625},{"style":169},[626],{"type":59,"value":627},"  IF",{"type":54,"tag":135,"props":629,"children":630},{"style":142},[631],{"type":59,"value":177},{"type":54,"tag":135,"props":633,"children":634},{"style":159},[635],{"type":59,"value":182},{"type":54,"tag":135,"props":637,"children":638},{"style":185},[639],{"type":59,"value":640},"IF",{"type":54,"tag":135,"props":642,"children":643},{"style":159},[644],{"type":59,"value":193},{"type":54,"tag":135,"props":646,"children":647},{"style":159},[648],{"type":59,"value":198},{"type":54,"tag":135,"props":650,"children":652},{"class":137,"line":651},18,[653,658,662,666,671,675],{"type":54,"tag":135,"props":654,"children":655},{"style":169},[656],{"type":59,"value":657},"  ILLEGAL",{"type":54,"tag":135,"props":659,"children":660},{"style":142},[661],{"type":59,"value":177},{"type":54,"tag":135,"props":663,"children":664},{"style":159},[665],{"type":59,"value":182},{"type":54,"tag":135,"props":667,"children":668},{"style":185},[669],{"type":59,"value":670},"ILLEGAL",{"type":54,"tag":135,"props":672,"children":673},{"style":159},[674],{"type":59,"value":193},{"type":54,"tag":135,"props":676,"children":677},{"style":159},[678],{"type":59,"value":198},{"type":54,"tag":135,"props":680,"children":682},{"class":137,"line":681},19,[683,688,692,696,701,705],{"type":54,"tag":135,"props":684,"children":685},{"style":169},[686],{"type":59,"value":687},"  LBRACE",{"type":54,"tag":135,"props":689,"children":690},{"style":142},[691],{"type":59,"value":177},{"type":54,"tag":135,"props":693,"children":694},{"style":159},[695],{"type":59,"value":182},{"type":54,"tag":135,"props":697,"children":698},{"style":185},[699],{"type":59,"value":700},"LBRACE",{"type":54,"tag":135,"props":702,"children":703},{"style":159},[704],{"type":59,"value":193},{"type":54,"tag":135,"props":706,"children":707},{"style":159},[708],{"type":59,"value":198},{"type":54,"tag":135,"props":710,"children":712},{"class":137,"line":711},20,[713,718,722,726,731,735],{"type":54,"tag":135,"props":714,"children":715},{"style":169},[716],{"type":59,"value":717},"  LET",{"type":54,"tag":135,"props":719,"children":720},{"style":142},[721],{"type":59,"value":177},{"type":54,"tag":135,"props":723,"children":724},{"style":159},[725],{"type":59,"value":182},{"type":54,"tag":135,"props":727,"children":728},{"style":185},[729],{"type":59,"value":730},"LET",{"type":54,"tag":135,"props":732,"children":733},{"style":159},[734],{"type":59,"value":193},{"type":54,"tag":135,"props":736,"children":737},{"style":159},[738],{"type":59,"value":198},{"type":54,"tag":135,"props":740,"children":742},{"class":137,"line":741},21,[743,748,752,756,761,765],{"type":54,"tag":135,"props":744,"children":745},{"style":169},[746],{"type":59,"value":747},"  LPAREN",{"type":54,"tag":135,"props":749,"children":750},{"style":142},[751],{"type":59,"value":177},{"type":54,"tag":135,"props":753,"children":754},{"style":159},[755],{"type":59,"value":182},{"type":54,"tag":135,"props":757,"children":758},{"style":185},[759],{"type":59,"value":760},"LPAREN",{"type":54,"tag":135,"props":762,"children":763},{"style":159},[764],{"type":59,"value":193},{"type":54,"tag":135,"props":766,"children":767},{"style":159},[768],{"type":59,"value":198},{"type":54,"tag":135,"props":770,"children":772},{"class":137,"line":771},22,[773,778,782,786,791,795],{"type":54,"tag":135,"props":774,"children":775},{"style":169},[776],{"type":59,"value":777},"  LT",{"type":54,"tag":135,"props":779,"children":780},{"style":142},[781],{"type":59,"value":177},{"type":54,"tag":135,"props":783,"children":784},{"style":159},[785],{"type":59,"value":182},{"type":54,"tag":135,"props":787,"children":788},{"style":185},[789],{"type":59,"value":790},"LT",{"type":54,"tag":135,"props":792,"children":793},{"style":159},[794],{"type":59,"value":193},{"type":54,"tag":135,"props":796,"children":797},{"style":159},[798],{"type":59,"value":198},{"type":54,"tag":135,"props":800,"children":802},{"class":137,"line":801},23,[803,808,812,816,821,825],{"type":54,"tag":135,"props":804,"children":805},{"style":169},[806],{"type":59,"value":807},"  LT_EQ",{"type":54,"tag":135,"props":809,"children":810},{"style":142},[811],{"type":59,"value":177},{"type":54,"tag":135,"props":813,"children":814},{"style":159},[815],{"type":59,"value":182},{"type":54,"tag":135,"props":817,"children":818},{"style":185},[819],{"type":59,"value":820},"LT_EQ",{"type":54,"tag":135,"props":822,"children":823},{"style":159},[824],{"type":59,"value":193},{"type":54,"tag":135,"props":826,"children":827},{"style":159},[828],{"type":59,"value":198},{"type":54,"tag":135,"props":830,"children":832},{"class":137,"line":831},24,[833,838,842,846,851,855],{"type":54,"tag":135,"props":834,"children":835},{"style":169},[836],{"type":59,"value":837},"  MINUS",{"type":54,"tag":135,"props":839,"children":840},{"style":142},[841],{"type":59,"value":177},{"type":54,"tag":135,"props":843,"children":844},{"style":159},[845],{"type":59,"value":182},{"type":54,"tag":135,"props":847,"children":848},{"style":185},[849],{"type":59,"value":850},"MINUS",{"type":54,"tag":135,"props":852,"children":853},{"style":159},[854],{"type":59,"value":193},{"type":54,"tag":135,"props":856,"children":857},{"style":159},[858],{"type":59,"value":198},{"type":54,"tag":135,"props":860,"children":862},{"class":137,"line":861},25,[863,868,872,876,881,885],{"type":54,"tag":135,"props":864,"children":865},{"style":169},[866],{"type":59,"value":867},"  NEQ",{"type":54,"tag":135,"props":869,"children":870},{"style":142},[871],{"type":59,"value":177},{"type":54,"tag":135,"props":873,"children":874},{"style":159},[875],{"type":59,"value":182},{"type":54,"tag":135,"props":877,"children":878},{"style":185},[879],{"type":59,"value":880},"NEQ",{"type":54,"tag":135,"props":882,"children":883},{"style":159},[884],{"type":59,"value":193},{"type":54,"tag":135,"props":886,"children":887},{"style":159},[888],{"type":59,"value":198},{"type":54,"tag":135,"props":890,"children":892},{"class":137,"line":891},26,[893,898,902,906,911,915],{"type":54,"tag":135,"props":894,"children":895},{"style":169},[896],{"type":59,"value":897},"  NOT",{"type":54,"tag":135,"props":899,"children":900},{"style":142},[901],{"type":59,"value":177},{"type":54,"tag":135,"props":903,"children":904},{"style":159},[905],{"type":59,"value":182},{"type":54,"tag":135,"props":907,"children":908},{"style":185},[909],{"type":59,"value":910},"NOT",{"type":54,"tag":135,"props":912,"children":913},{"style":159},[914],{"type":59,"value":193},{"type":54,"tag":135,"props":916,"children":917},{"style":159},[918],{"type":59,"value":198},{"type":54,"tag":135,"props":920,"children":922},{"class":137,"line":921},27,[923,928,932,936,941,945],{"type":54,"tag":135,"props":924,"children":925},{"style":169},[926],{"type":59,"value":927},"  NUM",{"type":54,"tag":135,"props":929,"children":930},{"style":142},[931],{"type":59,"value":177},{"type":54,"tag":135,"props":933,"children":934},{"style":159},[935],{"type":59,"value":182},{"type":54,"tag":135,"props":937,"children":938},{"style":185},[939],{"type":59,"value":940},"NUM",{"type":54,"tag":135,"props":942,"children":943},{"style":159},[944],{"type":59,"value":193},{"type":54,"tag":135,"props":946,"children":947},{"style":159},[948],{"type":59,"value":198},{"type":54,"tag":135,"props":950,"children":952},{"class":137,"line":951},28,[953,958,962,966,971,975],{"type":54,"tag":135,"props":954,"children":955},{"style":169},[956],{"type":59,"value":957},"  OR",{"type":54,"tag":135,"props":959,"children":960},{"style":142},[961],{"type":59,"value":177},{"type":54,"tag":135,"props":963,"children":964},{"style":159},[965],{"type":59,"value":182},{"type":54,"tag":135,"props":967,"children":968},{"style":185},[969],{"type":59,"value":970},"OR",{"type":54,"tag":135,"props":972,"children":973},{"style":159},[974],{"type":59,"value":193},{"type":54,"tag":135,"props":976,"children":977},{"style":159},[978],{"type":59,"value":198},{"type":54,"tag":135,"props":980,"children":982},{"class":137,"line":981},29,[983,988,992,996,1001,1005],{"type":54,"tag":135,"props":984,"children":985},{"style":169},[986],{"type":59,"value":987},"  PLUS",{"type":54,"tag":135,"props":989,"children":990},{"style":142},[991],{"type":59,"value":177},{"type":54,"tag":135,"props":993,"children":994},{"style":159},[995],{"type":59,"value":182},{"type":54,"tag":135,"props":997,"children":998},{"style":185},[999],{"type":59,"value":1000},"PLUS",{"type":54,"tag":135,"props":1002,"children":1003},{"style":159},[1004],{"type":59,"value":193},{"type":54,"tag":135,"props":1006,"children":1007},{"style":159},[1008],{"type":59,"value":198},{"type":54,"tag":135,"props":1010,"children":1012},{"class":137,"line":1011},30,[1013,1018,1022,1026,1031,1035],{"type":54,"tag":135,"props":1014,"children":1015},{"style":169},[1016],{"type":59,"value":1017},"  PLUS_EQ",{"type":54,"tag":135,"props":1019,"children":1020},{"style":142},[1021],{"type":59,"value":177},{"type":54,"tag":135,"props":1023,"children":1024},{"style":159},[1025],{"type":59,"value":182},{"type":54,"tag":135,"props":1027,"children":1028},{"style":185},[1029],{"type":59,"value":1030},"PLUS_EQ",{"type":54,"tag":135,"props":1032,"children":1033},{"style":159},[1034],{"type":59,"value":193},{"type":54,"tag":135,"props":1036,"children":1037},{"style":159},[1038],{"type":59,"value":198},{"type":54,"tag":135,"props":1040,"children":1042},{"class":137,"line":1041},31,[1043,1048,1052,1056,1061,1065],{"type":54,"tag":135,"props":1044,"children":1045},{"style":169},[1046],{"type":59,"value":1047},"  RBRACE",{"type":54,"tag":135,"props":1049,"children":1050},{"style":142},[1051],{"type":59,"value":177},{"type":54,"tag":135,"props":1053,"children":1054},{"style":159},[1055],{"type":59,"value":182},{"type":54,"tag":135,"props":1057,"children":1058},{"style":185},[1059],{"type":59,"value":1060},"RBRACE",{"type":54,"tag":135,"props":1062,"children":1063},{"style":159},[1064],{"type":59,"value":193},{"type":54,"tag":135,"props":1066,"children":1067},{"style":159},[1068],{"type":59,"value":198},{"type":54,"tag":135,"props":1070,"children":1072},{"class":137,"line":1071},32,[1073,1078,1082,1086,1091,1095],{"type":54,"tag":135,"props":1074,"children":1075},{"style":169},[1076],{"type":59,"value":1077},"  RETURN",{"type":54,"tag":135,"props":1079,"children":1080},{"style":142},[1081],{"type":59,"value":177},{"type":54,"tag":135,"props":1083,"children":1084},{"style":159},[1085],{"type":59,"value":182},{"type":54,"tag":135,"props":1087,"children":1088},{"style":185},[1089],{"type":59,"value":1090},"RETURN",{"type":54,"tag":135,"props":1092,"children":1093},{"style":159},[1094],{"type":59,"value":193},{"type":54,"tag":135,"props":1096,"children":1097},{"style":159},[1098],{"type":59,"value":198},{"type":54,"tag":135,"props":1100,"children":1102},{"class":137,"line":1101},33,[1103,1108,1112,1116,1121,1125],{"type":54,"tag":135,"props":1104,"children":1105},{"style":169},[1106],{"type":59,"value":1107},"  RPAREN",{"type":54,"tag":135,"props":1109,"children":1110},{"style":142},[1111],{"type":59,"value":177},{"type":54,"tag":135,"props":1113,"children":1114},{"style":159},[1115],{"type":59,"value":182},{"type":54,"tag":135,"props":1117,"children":1118},{"style":185},[1119],{"type":59,"value":1120},"RPAREN",{"type":54,"tag":135,"props":1122,"children":1123},{"style":159},[1124],{"type":59,"value":193},{"type":54,"tag":135,"props":1126,"children":1127},{"style":159},[1128],{"type":59,"value":198},{"type":54,"tag":135,"props":1130,"children":1132},{"class":137,"line":1131},34,[1133,1138,1142,1146,1151,1155],{"type":54,"tag":135,"props":1134,"children":1135},{"style":169},[1136],{"type":59,"value":1137},"  SEMICOLON",{"type":54,"tag":135,"props":1139,"children":1140},{"style":142},[1141],{"type":59,"value":177},{"type":54,"tag":135,"props":1143,"children":1144},{"style":159},[1145],{"type":59,"value":182},{"type":54,"tag":135,"props":1147,"children":1148},{"style":185},[1149],{"type":59,"value":1150},"SEMICOLON",{"type":54,"tag":135,"props":1152,"children":1153},{"style":159},[1154],{"type":59,"value":193},{"type":54,"tag":135,"props":1156,"children":1157},{"style":159},[1158],{"type":59,"value":198},{"type":54,"tag":135,"props":1160,"children":1162},{"class":137,"line":1161},35,[1163,1168,1172,1176,1181,1185],{"type":54,"tag":135,"props":1164,"children":1165},{"style":169},[1166],{"type":59,"value":1167},"  SLASH",{"type":54,"tag":135,"props":1169,"children":1170},{"style":142},[1171],{"type":59,"value":177},{"type":54,"tag":135,"props":1173,"children":1174},{"style":159},[1175],{"type":59,"value":182},{"type":54,"tag":135,"props":1177,"children":1178},{"style":185},[1179],{"type":59,"value":1180},"SLASH",{"type":54,"tag":135,"props":1182,"children":1183},{"style":159},[1184],{"type":59,"value":193},{"type":54,"tag":135,"props":1186,"children":1187},{"style":159},[1188],{"type":59,"value":198},{"type":54,"tag":135,"props":1190,"children":1192},{"class":137,"line":1191},36,[1193,1198,1202,1206,1211,1215],{"type":54,"tag":135,"props":1194,"children":1195},{"style":169},[1196],{"type":59,"value":1197},"  TRUE",{"type":54,"tag":135,"props":1199,"children":1200},{"style":142},[1201],{"type":59,"value":177},{"type":54,"tag":135,"props":1203,"children":1204},{"style":159},[1205],{"type":59,"value":182},{"type":54,"tag":135,"props":1207,"children":1208},{"style":185},[1209],{"type":59,"value":1210},"TRUE",{"type":54,"tag":135,"props":1212,"children":1213},{"style":159},[1214],{"type":59,"value":193},{"type":54,"tag":135,"props":1216,"children":1217},{"style":159},[1218],{"type":59,"value":198},{"type":54,"tag":135,"props":1220,"children":1222},{"class":137,"line":1221},37,[1223,1228,1232,1236,1241,1245],{"type":54,"tag":135,"props":1224,"children":1225},{"style":169},[1226],{"type":59,"value":1227},"  WHILE",{"type":54,"tag":135,"props":1229,"children":1230},{"style":142},[1231],{"type":59,"value":177},{"type":54,"tag":135,"props":1233,"children":1234},{"style":159},[1235],{"type":59,"value":182},{"type":54,"tag":135,"props":1237,"children":1238},{"style":185},[1239],{"type":59,"value":1240},"WHILE",{"type":54,"tag":135,"props":1242,"children":1243},{"style":159},[1244],{"type":59,"value":193},{"type":54,"tag":135,"props":1246,"children":1247},{"style":159},[1248],{"type":59,"value":198},{"type":54,"tag":135,"props":1250,"children":1252},{"class":137,"line":1251},38,[1253],{"type":54,"tag":135,"props":1254,"children":1255},{"style":159},[1256],{"type":59,"value":1257},"}\n",{"type":54,"tag":55,"props":1259,"children":1260},{},[1261,1263,1268],{"type":59,"value":1262},"Una vez definidos los ",{"type":54,"tag":108,"props":1264,"children":1266},{"className":1265},[],[1267],{"type":59,"value":113},{"type":59,"value":1269},", es importante establecer los literales para los símbolos y las palabras clave que se utilizarán en Codexivo. Basándonos en JavaScript, hemos considerado los siguientes símbolos:",{"type":54,"tag":125,"props":1271,"children":1273},{"className":127,"code":1272,"language":129,"meta":7,"style":7},"const tokenPatterns = {\n  \"=\": TokenType.ASSIGN,\n  \"==\": TokenType.EQ,\n  \"+\": TokenType.PLUS,\n  \"+=\": TokenType.PLUS_EQ,\n  \"-\": TokenType.MINUS,\n  \"*\": TokenType.ASTERISK,\n  \"/\": TokenType.SLASH,\n  \"\u003C\": TokenType.LT,\n  \"\u003C=\": TokenType.LT_EQ,\n  \">\": TokenType.GT,\n  \">=\": TokenType.GT_EQ,\n  \"!\": TokenType.BANG,\n  \",\": TokenType.COMMA,\n  \";\": TokenType.SEMICOLON,\n  \"(\": TokenType.LPAREN,\n  \")\": TokenType.RPAREN,\n  \"{\": TokenType.LBRACE,\n  \"}\": TokenType.RBRACE,\n  \"\": TokenType.EOF,\n};\n",[1274],{"type":54,"tag":108,"props":1275,"children":1276},{"__ignoreMap":7},[1277,1298,1337,1373,1409,1445,1481,1517,1553,1589,1625,1661,1697,1733,1769,1805,1841,1877,1913,1949,1977],{"type":54,"tag":135,"props":1278,"children":1279},{"class":137,"line":138},[1280,1285,1290,1294],{"type":54,"tag":135,"props":1281,"children":1282},{"style":142},[1283],{"type":59,"value":1284},"const",{"type":54,"tag":135,"props":1286,"children":1287},{"style":169},[1288],{"type":59,"value":1289}," tokenPatterns",{"type":54,"tag":135,"props":1291,"children":1292},{"style":142},[1293],{"type":59,"value":177},{"type":54,"tag":135,"props":1295,"children":1296},{"style":159},[1297],{"type":59,"value":162},{"type":54,"tag":135,"props":1299,"children":1300},{"class":137,"line":165},[1301,1306,1311,1315,1320,1324,1329,1333],{"type":54,"tag":135,"props":1302,"children":1303},{"style":159},[1304],{"type":59,"value":1305},"  \"",{"type":54,"tag":135,"props":1307,"children":1308},{"style":185},[1309],{"type":59,"value":1310},"=",{"type":54,"tag":135,"props":1312,"children":1313},{"style":159},[1314],{"type":59,"value":193},{"type":54,"tag":135,"props":1316,"children":1317},{"style":159},[1318],{"type":59,"value":1319},":",{"type":54,"tag":135,"props":1321,"children":1322},{"style":169},[1323],{"type":59,"value":156},{"type":54,"tag":135,"props":1325,"children":1326},{"style":159},[1327],{"type":59,"value":1328},".",{"type":54,"tag":135,"props":1330,"children":1331},{"style":169},[1332],{"type":59,"value":220},{"type":54,"tag":135,"props":1334,"children":1335},{"style":159},[1336],{"type":59,"value":198},{"type":54,"tag":135,"props":1338,"children":1339},{"class":137,"line":201},[1340,1344,1349,1353,1357,1361,1365,1369],{"type":54,"tag":135,"props":1341,"children":1342},{"style":159},[1343],{"type":59,"value":1305},{"type":54,"tag":135,"props":1345,"children":1346},{"style":185},[1347],{"type":59,"value":1348},"==",{"type":54,"tag":135,"props":1350,"children":1351},{"style":159},[1352],{"type":59,"value":193},{"type":54,"tag":135,"props":1354,"children":1355},{"style":159},[1356],{"type":59,"value":1319},{"type":54,"tag":135,"props":1358,"children":1359},{"style":169},[1360],{"type":59,"value":156},{"type":54,"tag":135,"props":1362,"children":1363},{"style":159},[1364],{"type":59,"value":1328},{"type":54,"tag":135,"props":1366,"children":1367},{"style":169},[1368],{"type":59,"value":430},{"type":54,"tag":135,"props":1370,"children":1371},{"style":159},[1372],{"type":59,"value":198},{"type":54,"tag":135,"props":1374,"children":1375},{"class":137,"line":231},[1376,1380,1385,1389,1393,1397,1401,1405],{"type":54,"tag":135,"props":1377,"children":1378},{"style":159},[1379],{"type":59,"value":1305},{"type":54,"tag":135,"props":1381,"children":1382},{"style":185},[1383],{"type":59,"value":1384},"+",{"type":54,"tag":135,"props":1386,"children":1387},{"style":159},[1388],{"type":59,"value":193},{"type":54,"tag":135,"props":1390,"children":1391},{"style":159},[1392],{"type":59,"value":1319},{"type":54,"tag":135,"props":1394,"children":1395},{"style":169},[1396],{"type":59,"value":156},{"type":54,"tag":135,"props":1398,"children":1399},{"style":159},[1400],{"type":59,"value":1328},{"type":54,"tag":135,"props":1402,"children":1403},{"style":169},[1404],{"type":59,"value":1000},{"type":54,"tag":135,"props":1406,"children":1407},{"style":159},[1408],{"type":59,"value":198},{"type":54,"tag":135,"props":1410,"children":1411},{"class":137,"line":261},[1412,1416,1421,1425,1429,1433,1437,1441],{"type":54,"tag":135,"props":1413,"children":1414},{"style":159},[1415],{"type":59,"value":1305},{"type":54,"tag":135,"props":1417,"children":1418},{"style":185},[1419],{"type":59,"value":1420},"+=",{"type":54,"tag":135,"props":1422,"children":1423},{"style":159},[1424],{"type":59,"value":193},{"type":54,"tag":135,"props":1426,"children":1427},{"style":159},[1428],{"type":59,"value":1319},{"type":54,"tag":135,"props":1430,"children":1431},{"style":169},[1432],{"type":59,"value":156},{"type":54,"tag":135,"props":1434,"children":1435},{"style":159},[1436],{"type":59,"value":1328},{"type":54,"tag":135,"props":1438,"children":1439},{"style":169},[1440],{"type":59,"value":1030},{"type":54,"tag":135,"props":1442,"children":1443},{"style":159},[1444],{"type":59,"value":198},{"type":54,"tag":135,"props":1446,"children":1447},{"class":137,"line":291},[1448,1452,1457,1461,1465,1469,1473,1477],{"type":54,"tag":135,"props":1449,"children":1450},{"style":159},[1451],{"type":59,"value":1305},{"type":54,"tag":135,"props":1453,"children":1454},{"style":185},[1455],{"type":59,"value":1456},"-",{"type":54,"tag":135,"props":1458,"children":1459},{"style":159},[1460],{"type":59,"value":193},{"type":54,"tag":135,"props":1462,"children":1463},{"style":159},[1464],{"type":59,"value":1319},{"type":54,"tag":135,"props":1466,"children":1467},{"style":169},[1468],{"type":59,"value":156},{"type":54,"tag":135,"props":1470,"children":1471},{"style":159},[1472],{"type":59,"value":1328},{"type":54,"tag":135,"props":1474,"children":1475},{"style":169},[1476],{"type":59,"value":850},{"type":54,"tag":135,"props":1478,"children":1479},{"style":159},[1480],{"type":59,"value":198},{"type":54,"tag":135,"props":1482,"children":1483},{"class":137,"line":321},[1484,1488,1493,1497,1501,1505,1509,1513],{"type":54,"tag":135,"props":1485,"children":1486},{"style":159},[1487],{"type":59,"value":1305},{"type":54,"tag":135,"props":1489,"children":1490},{"style":185},[1491],{"type":59,"value":1492},"*",{"type":54,"tag":135,"props":1494,"children":1495},{"style":159},[1496],{"type":59,"value":193},{"type":54,"tag":135,"props":1498,"children":1499},{"style":159},[1500],{"type":59,"value":1319},{"type":54,"tag":135,"props":1502,"children":1503},{"style":169},[1504],{"type":59,"value":156},{"type":54,"tag":135,"props":1506,"children":1507},{"style":159},[1508],{"type":59,"value":1328},{"type":54,"tag":135,"props":1510,"children":1511},{"style":169},[1512],{"type":59,"value":250},{"type":54,"tag":135,"props":1514,"children":1515},{"style":159},[1516],{"type":59,"value":198},{"type":54,"tag":135,"props":1518,"children":1519},{"class":137,"line":351},[1520,1524,1529,1533,1537,1541,1545,1549],{"type":54,"tag":135,"props":1521,"children":1522},{"style":159},[1523],{"type":59,"value":1305},{"type":54,"tag":135,"props":1525,"children":1526},{"style":185},[1527],{"type":59,"value":1528},"/",{"type":54,"tag":135,"props":1530,"children":1531},{"style":159},[1532],{"type":59,"value":193},{"type":54,"tag":135,"props":1534,"children":1535},{"style":159},[1536],{"type":59,"value":1319},{"type":54,"tag":135,"props":1538,"children":1539},{"style":169},[1540],{"type":59,"value":156},{"type":54,"tag":135,"props":1542,"children":1543},{"style":159},[1544],{"type":59,"value":1328},{"type":54,"tag":135,"props":1546,"children":1547},{"style":169},[1548],{"type":59,"value":1180},{"type":54,"tag":135,"props":1550,"children":1551},{"style":159},[1552],{"type":59,"value":198},{"type":54,"tag":135,"props":1554,"children":1555},{"class":137,"line":381},[1556,1560,1565,1569,1573,1577,1581,1585],{"type":54,"tag":135,"props":1557,"children":1558},{"style":159},[1559],{"type":59,"value":1305},{"type":54,"tag":135,"props":1561,"children":1562},{"style":185},[1563],{"type":59,"value":1564},"\u003C",{"type":54,"tag":135,"props":1566,"children":1567},{"style":159},[1568],{"type":59,"value":193},{"type":54,"tag":135,"props":1570,"children":1571},{"style":159},[1572],{"type":59,"value":1319},{"type":54,"tag":135,"props":1574,"children":1575},{"style":169},[1576],{"type":59,"value":156},{"type":54,"tag":135,"props":1578,"children":1579},{"style":159},[1580],{"type":59,"value":1328},{"type":54,"tag":135,"props":1582,"children":1583},{"style":169},[1584],{"type":59,"value":790},{"type":54,"tag":135,"props":1586,"children":1587},{"style":159},[1588],{"type":59,"value":198},{"type":54,"tag":135,"props":1590,"children":1591},{"class":137,"line":411},[1592,1596,1601,1605,1609,1613,1617,1621],{"type":54,"tag":135,"props":1593,"children":1594},{"style":159},[1595],{"type":59,"value":1305},{"type":54,"tag":135,"props":1597,"children":1598},{"style":185},[1599],{"type":59,"value":1600},"\u003C=",{"type":54,"tag":135,"props":1602,"children":1603},{"style":159},[1604],{"type":59,"value":193},{"type":54,"tag":135,"props":1606,"children":1607},{"style":159},[1608],{"type":59,"value":1319},{"type":54,"tag":135,"props":1610,"children":1611},{"style":169},[1612],{"type":59,"value":156},{"type":54,"tag":135,"props":1614,"children":1615},{"style":159},[1616],{"type":59,"value":1328},{"type":54,"tag":135,"props":1618,"children":1619},{"style":169},[1620],{"type":59,"value":820},{"type":54,"tag":135,"props":1622,"children":1623},{"style":159},[1624],{"type":59,"value":198},{"type":54,"tag":135,"props":1626,"children":1627},{"class":137,"line":441},[1628,1632,1637,1641,1645,1649,1653,1657],{"type":54,"tag":135,"props":1629,"children":1630},{"style":159},[1631],{"type":59,"value":1305},{"type":54,"tag":135,"props":1633,"children":1634},{"style":185},[1635],{"type":59,"value":1636},">",{"type":54,"tag":135,"props":1638,"children":1639},{"style":159},[1640],{"type":59,"value":193},{"type":54,"tag":135,"props":1642,"children":1643},{"style":159},[1644],{"type":59,"value":1319},{"type":54,"tag":135,"props":1646,"children":1647},{"style":169},[1648],{"type":59,"value":156},{"type":54,"tag":135,"props":1650,"children":1651},{"style":159},[1652],{"type":59,"value":1328},{"type":54,"tag":135,"props":1654,"children":1655},{"style":169},[1656],{"type":59,"value":550},{"type":54,"tag":135,"props":1658,"children":1659},{"style":159},[1660],{"type":59,"value":198},{"type":54,"tag":135,"props":1662,"children":1663},{"class":137,"line":471},[1664,1668,1673,1677,1681,1685,1689,1693],{"type":54,"tag":135,"props":1665,"children":1666},{"style":159},[1667],{"type":59,"value":1305},{"type":54,"tag":135,"props":1669,"children":1670},{"style":185},[1671],{"type":59,"value":1672},">=",{"type":54,"tag":135,"props":1674,"children":1675},{"style":159},[1676],{"type":59,"value":193},{"type":54,"tag":135,"props":1678,"children":1679},{"style":159},[1680],{"type":59,"value":1319},{"type":54,"tag":135,"props":1682,"children":1683},{"style":169},[1684],{"type":59,"value":156},{"type":54,"tag":135,"props":1686,"children":1687},{"style":159},[1688],{"type":59,"value":1328},{"type":54,"tag":135,"props":1690,"children":1691},{"style":169},[1692],{"type":59,"value":580},{"type":54,"tag":135,"props":1694,"children":1695},{"style":159},[1696],{"type":59,"value":198},{"type":54,"tag":135,"props":1698,"children":1699},{"class":137,"line":501},[1700,1704,1709,1713,1717,1721,1725,1729],{"type":54,"tag":135,"props":1701,"children":1702},{"style":159},[1703],{"type":59,"value":1305},{"type":54,"tag":135,"props":1705,"children":1706},{"style":185},[1707],{"type":59,"value":1708},"!",{"type":54,"tag":135,"props":1710,"children":1711},{"style":159},[1712],{"type":59,"value":193},{"type":54,"tag":135,"props":1714,"children":1715},{"style":159},[1716],{"type":59,"value":1319},{"type":54,"tag":135,"props":1718,"children":1719},{"style":169},[1720],{"type":59,"value":156},{"type":54,"tag":135,"props":1722,"children":1723},{"style":159},[1724],{"type":59,"value":1328},{"type":54,"tag":135,"props":1726,"children":1727},{"style":169},[1728],{"type":59,"value":280},{"type":54,"tag":135,"props":1730,"children":1731},{"style":159},[1732],{"type":59,"value":198},{"type":54,"tag":135,"props":1734,"children":1735},{"class":137,"line":531},[1736,1740,1745,1749,1753,1757,1761,1765],{"type":54,"tag":135,"props":1737,"children":1738},{"style":159},[1739],{"type":59,"value":1305},{"type":54,"tag":135,"props":1741,"children":1742},{"style":185},[1743],{"type":59,"value":1744},",",{"type":54,"tag":135,"props":1746,"children":1747},{"style":159},[1748],{"type":59,"value":193},{"type":54,"tag":135,"props":1750,"children":1751},{"style":159},[1752],{"type":59,"value":1319},{"type":54,"tag":135,"props":1754,"children":1755},{"style":169},[1756],{"type":59,"value":156},{"type":54,"tag":135,"props":1758,"children":1759},{"style":159},[1760],{"type":59,"value":1328},{"type":54,"tag":135,"props":1762,"children":1763},{"style":169},[1764],{"type":59,"value":310},{"type":54,"tag":135,"props":1766,"children":1767},{"style":159},[1768],{"type":59,"value":198},{"type":54,"tag":135,"props":1770,"children":1771},{"class":137,"line":561},[1772,1776,1781,1785,1789,1793,1797,1801],{"type":54,"tag":135,"props":1773,"children":1774},{"style":159},[1775],{"type":59,"value":1305},{"type":54,"tag":135,"props":1777,"children":1778},{"style":185},[1779],{"type":59,"value":1780},";",{"type":54,"tag":135,"props":1782,"children":1783},{"style":159},[1784],{"type":59,"value":193},{"type":54,"tag":135,"props":1786,"children":1787},{"style":159},[1788],{"type":59,"value":1319},{"type":54,"tag":135,"props":1790,"children":1791},{"style":169},[1792],{"type":59,"value":156},{"type":54,"tag":135,"props":1794,"children":1795},{"style":159},[1796],{"type":59,"value":1328},{"type":54,"tag":135,"props":1798,"children":1799},{"style":169},[1800],{"type":59,"value":1150},{"type":54,"tag":135,"props":1802,"children":1803},{"style":159},[1804],{"type":59,"value":198},{"type":54,"tag":135,"props":1806,"children":1807},{"class":137,"line":591},[1808,1812,1817,1821,1825,1829,1833,1837],{"type":54,"tag":135,"props":1809,"children":1810},{"style":159},[1811],{"type":59,"value":1305},{"type":54,"tag":135,"props":1813,"children":1814},{"style":185},[1815],{"type":59,"value":1816},"(",{"type":54,"tag":135,"props":1818,"children":1819},{"style":159},[1820],{"type":59,"value":193},{"type":54,"tag":135,"props":1822,"children":1823},{"style":159},[1824],{"type":59,"value":1319},{"type":54,"tag":135,"props":1826,"children":1827},{"style":169},[1828],{"type":59,"value":156},{"type":54,"tag":135,"props":1830,"children":1831},{"style":159},[1832],{"type":59,"value":1328},{"type":54,"tag":135,"props":1834,"children":1835},{"style":169},[1836],{"type":59,"value":760},{"type":54,"tag":135,"props":1838,"children":1839},{"style":159},[1840],{"type":59,"value":198},{"type":54,"tag":135,"props":1842,"children":1843},{"class":137,"line":621},[1844,1848,1853,1857,1861,1865,1869,1873],{"type":54,"tag":135,"props":1845,"children":1846},{"style":159},[1847],{"type":59,"value":1305},{"type":54,"tag":135,"props":1849,"children":1850},{"style":185},[1851],{"type":59,"value":1852},")",{"type":54,"tag":135,"props":1854,"children":1855},{"style":159},[1856],{"type":59,"value":193},{"type":54,"tag":135,"props":1858,"children":1859},{"style":159},[1860],{"type":59,"value":1319},{"type":54,"tag":135,"props":1862,"children":1863},{"style":169},[1864],{"type":59,"value":156},{"type":54,"tag":135,"props":1866,"children":1867},{"style":159},[1868],{"type":59,"value":1328},{"type":54,"tag":135,"props":1870,"children":1871},{"style":169},[1872],{"type":59,"value":1120},{"type":54,"tag":135,"props":1874,"children":1875},{"style":159},[1876],{"type":59,"value":198},{"type":54,"tag":135,"props":1878,"children":1879},{"class":137,"line":651},[1880,1884,1889,1893,1897,1901,1905,1909],{"type":54,"tag":135,"props":1881,"children":1882},{"style":159},[1883],{"type":59,"value":1305},{"type":54,"tag":135,"props":1885,"children":1886},{"style":185},[1887],{"type":59,"value":1888},"{",{"type":54,"tag":135,"props":1890,"children":1891},{"style":159},[1892],{"type":59,"value":193},{"type":54,"tag":135,"props":1894,"children":1895},{"style":159},[1896],{"type":59,"value":1319},{"type":54,"tag":135,"props":1898,"children":1899},{"style":169},[1900],{"type":59,"value":156},{"type":54,"tag":135,"props":1902,"children":1903},{"style":159},[1904],{"type":59,"value":1328},{"type":54,"tag":135,"props":1906,"children":1907},{"style":169},[1908],{"type":59,"value":700},{"type":54,"tag":135,"props":1910,"children":1911},{"style":159},[1912],{"type":59,"value":198},{"type":54,"tag":135,"props":1914,"children":1915},{"class":137,"line":681},[1916,1920,1925,1929,1933,1937,1941,1945],{"type":54,"tag":135,"props":1917,"children":1918},{"style":159},[1919],{"type":59,"value":1305},{"type":54,"tag":135,"props":1921,"children":1922},{"style":185},[1923],{"type":59,"value":1924},"}",{"type":54,"tag":135,"props":1926,"children":1927},{"style":159},[1928],{"type":59,"value":193},{"type":54,"tag":135,"props":1930,"children":1931},{"style":159},[1932],{"type":59,"value":1319},{"type":54,"tag":135,"props":1934,"children":1935},{"style":169},[1936],{"type":59,"value":156},{"type":54,"tag":135,"props":1938,"children":1939},{"style":159},[1940],{"type":59,"value":1328},{"type":54,"tag":135,"props":1942,"children":1943},{"style":169},[1944],{"type":59,"value":1060},{"type":54,"tag":135,"props":1946,"children":1947},{"style":159},[1948],{"type":59,"value":198},{"type":54,"tag":135,"props":1950,"children":1951},{"class":137,"line":711},[1952,1957,1961,1965,1969,1973],{"type":54,"tag":135,"props":1953,"children":1954},{"style":159},[1955],{"type":59,"value":1956},"  \"\"",{"type":54,"tag":135,"props":1958,"children":1959},{"style":159},[1960],{"type":59,"value":1319},{"type":54,"tag":135,"props":1962,"children":1963},{"style":169},[1964],{"type":59,"value":156},{"type":54,"tag":135,"props":1966,"children":1967},{"style":159},[1968],{"type":59,"value":1328},{"type":54,"tag":135,"props":1970,"children":1971},{"style":169},[1972],{"type":59,"value":400},{"type":54,"tag":135,"props":1974,"children":1975},{"style":159},[1976],{"type":59,"value":198},{"type":54,"tag":135,"props":1978,"children":1979},{"class":137,"line":741},[1980,1984],{"type":54,"tag":135,"props":1981,"children":1982},{"style":159},[1983],{"type":59,"value":1924},{"type":54,"tag":135,"props":1985,"children":1986},{"style":142},[1987],{"type":59,"value":1988},";\n",{"type":54,"tag":55,"props":1990,"children":1991},{},[1992],{"type":59,"value":1993},"Y las palabras clave serian:",{"type":54,"tag":125,"props":1995,"children":1997},{"className":127,"code":1996,"language":129,"meta":7,"style":7},"const keywords: { [key: string]: TokenType } = {\n  falso: TokenType.FALSE,\n  procedimiento: TokenType.FUNCTION,\n  regresa: TokenType.RETURN,\n  si: TokenType.IF,\n  si_no: TokenType.ELSE,\n  pero_si: TokenType.ELSEIF,\n  variable: TokenType.LET,\n  verdadero: TokenType.TRUE,\n  mientras: TokenType.WHILE,\n  hacer: TokenType.DO,\n  hasta_que: TokenType.WHILE,\n  y: TokenType.AND,\n  o: TokenType.OR,\n  para: TokenType.FOR,\n  no: TokenType.NOT,\n};\n",[1998],{"type":54,"tag":108,"props":1999,"children":2000},{"__ignoreMap":7},[2001,2068,2096,2124,2152,2180,2208,2237,2265,2293,2321,2349,2377,2405,2433,2461,2489],{"type":54,"tag":135,"props":2002,"children":2003},{"class":137,"line":138},[2004,2008,2013,2017,2022,2028,2033,2037,2042,2047,2051,2055,2060,2064],{"type":54,"tag":135,"props":2005,"children":2006},{"style":142},[2007],{"type":59,"value":1284},{"type":54,"tag":135,"props":2009,"children":2010},{"style":169},[2011],{"type":59,"value":2012}," keywords",{"type":54,"tag":135,"props":2014,"children":2015},{"style":142},[2016],{"type":59,"value":1319},{"type":54,"tag":135,"props":2018,"children":2019},{"style":159},[2020],{"type":59,"value":2021}," {",{"type":54,"tag":135,"props":2023,"children":2025},{"style":2024},"--shiki-default:#D8DEE9FF",[2026],{"type":59,"value":2027}," [",{"type":54,"tag":135,"props":2029,"children":2030},{"style":169},[2031],{"type":59,"value":2032},"key",{"type":54,"tag":135,"props":2034,"children":2035},{"style":142},[2036],{"type":59,"value":1319},{"type":54,"tag":135,"props":2038,"children":2039},{"style":153},[2040],{"type":59,"value":2041}," string",{"type":54,"tag":135,"props":2043,"children":2044},{"style":2024},[2045],{"type":59,"value":2046},"]",{"type":54,"tag":135,"props":2048,"children":2049},{"style":142},[2050],{"type":59,"value":1319},{"type":54,"tag":135,"props":2052,"children":2053},{"style":153},[2054],{"type":59,"value":156},{"type":54,"tag":135,"props":2056,"children":2057},{"style":159},[2058],{"type":59,"value":2059}," }",{"type":54,"tag":135,"props":2061,"children":2062},{"style":142},[2063],{"type":59,"value":177},{"type":54,"tag":135,"props":2065,"children":2066},{"style":159},[2067],{"type":59,"value":162},{"type":54,"tag":135,"props":2069,"children":2070},{"class":137,"line":165},[2071,2076,2080,2084,2088,2092],{"type":54,"tag":135,"props":2072,"children":2073},{"style":169},[2074],{"type":59,"value":2075},"  falso",{"type":54,"tag":135,"props":2077,"children":2078},{"style":159},[2079],{"type":59,"value":1319},{"type":54,"tag":135,"props":2081,"children":2082},{"style":169},[2083],{"type":59,"value":156},{"type":54,"tag":135,"props":2085,"children":2086},{"style":159},[2087],{"type":59,"value":1328},{"type":54,"tag":135,"props":2089,"children":2090},{"style":169},[2091],{"type":59,"value":460},{"type":54,"tag":135,"props":2093,"children":2094},{"style":159},[2095],{"type":59,"value":198},{"type":54,"tag":135,"props":2097,"children":2098},{"class":137,"line":201},[2099,2104,2108,2112,2116,2120],{"type":54,"tag":135,"props":2100,"children":2101},{"style":169},[2102],{"type":59,"value":2103},"  procedimiento",{"type":54,"tag":135,"props":2105,"children":2106},{"style":159},[2107],{"type":59,"value":1319},{"type":54,"tag":135,"props":2109,"children":2110},{"style":169},[2111],{"type":59,"value":156},{"type":54,"tag":135,"props":2113,"children":2114},{"style":159},[2115],{"type":59,"value":1328},{"type":54,"tag":135,"props":2117,"children":2118},{"style":169},[2119],{"type":59,"value":520},{"type":54,"tag":135,"props":2121,"children":2122},{"style":159},[2123],{"type":59,"value":198},{"type":54,"tag":135,"props":2125,"children":2126},{"class":137,"line":231},[2127,2132,2136,2140,2144,2148],{"type":54,"tag":135,"props":2128,"children":2129},{"style":169},[2130],{"type":59,"value":2131},"  regresa",{"type":54,"tag":135,"props":2133,"children":2134},{"style":159},[2135],{"type":59,"value":1319},{"type":54,"tag":135,"props":2137,"children":2138},{"style":169},[2139],{"type":59,"value":156},{"type":54,"tag":135,"props":2141,"children":2142},{"style":159},[2143],{"type":59,"value":1328},{"type":54,"tag":135,"props":2145,"children":2146},{"style":169},[2147],{"type":59,"value":1090},{"type":54,"tag":135,"props":2149,"children":2150},{"style":159},[2151],{"type":59,"value":198},{"type":54,"tag":135,"props":2153,"children":2154},{"class":137,"line":261},[2155,2160,2164,2168,2172,2176],{"type":54,"tag":135,"props":2156,"children":2157},{"style":169},[2158],{"type":59,"value":2159},"  si",{"type":54,"tag":135,"props":2161,"children":2162},{"style":159},[2163],{"type":59,"value":1319},{"type":54,"tag":135,"props":2165,"children":2166},{"style":169},[2167],{"type":59,"value":156},{"type":54,"tag":135,"props":2169,"children":2170},{"style":159},[2171],{"type":59,"value":1328},{"type":54,"tag":135,"props":2173,"children":2174},{"style":169},[2175],{"type":59,"value":640},{"type":54,"tag":135,"props":2177,"children":2178},{"style":159},[2179],{"type":59,"value":198},{"type":54,"tag":135,"props":2181,"children":2182},{"class":137,"line":291},[2183,2188,2192,2196,2200,2204],{"type":54,"tag":135,"props":2184,"children":2185},{"style":169},[2186],{"type":59,"value":2187},"  si_no",{"type":54,"tag":135,"props":2189,"children":2190},{"style":159},[2191],{"type":59,"value":1319},{"type":54,"tag":135,"props":2193,"children":2194},{"style":169},[2195],{"type":59,"value":156},{"type":54,"tag":135,"props":2197,"children":2198},{"style":159},[2199],{"type":59,"value":1328},{"type":54,"tag":135,"props":2201,"children":2202},{"style":169},[2203],{"type":59,"value":370},{"type":54,"tag":135,"props":2205,"children":2206},{"style":159},[2207],{"type":59,"value":198},{"type":54,"tag":135,"props":2209,"children":2210},{"class":137,"line":321},[2211,2216,2220,2224,2228,2233],{"type":54,"tag":135,"props":2212,"children":2213},{"style":169},[2214],{"type":59,"value":2215},"  pero_si",{"type":54,"tag":135,"props":2217,"children":2218},{"style":159},[2219],{"type":59,"value":1319},{"type":54,"tag":135,"props":2221,"children":2222},{"style":169},[2223],{"type":59,"value":156},{"type":54,"tag":135,"props":2225,"children":2226},{"style":159},[2227],{"type":59,"value":1328},{"type":54,"tag":135,"props":2229,"children":2230},{"style":169},[2231],{"type":59,"value":2232},"ELSEIF",{"type":54,"tag":135,"props":2234,"children":2235},{"style":159},[2236],{"type":59,"value":198},{"type":54,"tag":135,"props":2238,"children":2239},{"class":137,"line":351},[2240,2245,2249,2253,2257,2261],{"type":54,"tag":135,"props":2241,"children":2242},{"style":169},[2243],{"type":59,"value":2244},"  variable",{"type":54,"tag":135,"props":2246,"children":2247},{"style":159},[2248],{"type":59,"value":1319},{"type":54,"tag":135,"props":2250,"children":2251},{"style":169},[2252],{"type":59,"value":156},{"type":54,"tag":135,"props":2254,"children":2255},{"style":159},[2256],{"type":59,"value":1328},{"type":54,"tag":135,"props":2258,"children":2259},{"style":169},[2260],{"type":59,"value":730},{"type":54,"tag":135,"props":2262,"children":2263},{"style":159},[2264],{"type":59,"value":198},{"type":54,"tag":135,"props":2266,"children":2267},{"class":137,"line":381},[2268,2273,2277,2281,2285,2289],{"type":54,"tag":135,"props":2269,"children":2270},{"style":169},[2271],{"type":59,"value":2272},"  verdadero",{"type":54,"tag":135,"props":2274,"children":2275},{"style":159},[2276],{"type":59,"value":1319},{"type":54,"tag":135,"props":2278,"children":2279},{"style":169},[2280],{"type":59,"value":156},{"type":54,"tag":135,"props":2282,"children":2283},{"style":159},[2284],{"type":59,"value":1328},{"type":54,"tag":135,"props":2286,"children":2287},{"style":169},[2288],{"type":59,"value":1210},{"type":54,"tag":135,"props":2290,"children":2291},{"style":159},[2292],{"type":59,"value":198},{"type":54,"tag":135,"props":2294,"children":2295},{"class":137,"line":411},[2296,2301,2305,2309,2313,2317],{"type":54,"tag":135,"props":2297,"children":2298},{"style":169},[2299],{"type":59,"value":2300},"  mientras",{"type":54,"tag":135,"props":2302,"children":2303},{"style":159},[2304],{"type":59,"value":1319},{"type":54,"tag":135,"props":2306,"children":2307},{"style":169},[2308],{"type":59,"value":156},{"type":54,"tag":135,"props":2310,"children":2311},{"style":159},[2312],{"type":59,"value":1328},{"type":54,"tag":135,"props":2314,"children":2315},{"style":169},[2316],{"type":59,"value":1240},{"type":54,"tag":135,"props":2318,"children":2319},{"style":159},[2320],{"type":59,"value":198},{"type":54,"tag":135,"props":2322,"children":2323},{"class":137,"line":441},[2324,2329,2333,2337,2341,2345],{"type":54,"tag":135,"props":2325,"children":2326},{"style":169},[2327],{"type":59,"value":2328},"  hacer",{"type":54,"tag":135,"props":2330,"children":2331},{"style":159},[2332],{"type":59,"value":1319},{"type":54,"tag":135,"props":2334,"children":2335},{"style":169},[2336],{"type":59,"value":156},{"type":54,"tag":135,"props":2338,"children":2339},{"style":159},[2340],{"type":59,"value":1328},{"type":54,"tag":135,"props":2342,"children":2343},{"style":169},[2344],{"type":59,"value":340},{"type":54,"tag":135,"props":2346,"children":2347},{"style":159},[2348],{"type":59,"value":198},{"type":54,"tag":135,"props":2350,"children":2351},{"class":137,"line":471},[2352,2357,2361,2365,2369,2373],{"type":54,"tag":135,"props":2353,"children":2354},{"style":169},[2355],{"type":59,"value":2356},"  hasta_que",{"type":54,"tag":135,"props":2358,"children":2359},{"style":159},[2360],{"type":59,"value":1319},{"type":54,"tag":135,"props":2362,"children":2363},{"style":169},[2364],{"type":59,"value":156},{"type":54,"tag":135,"props":2366,"children":2367},{"style":159},[2368],{"type":59,"value":1328},{"type":54,"tag":135,"props":2370,"children":2371},{"style":169},[2372],{"type":59,"value":1240},{"type":54,"tag":135,"props":2374,"children":2375},{"style":159},[2376],{"type":59,"value":198},{"type":54,"tag":135,"props":2378,"children":2379},{"class":137,"line":501},[2380,2385,2389,2393,2397,2401],{"type":54,"tag":135,"props":2381,"children":2382},{"style":169},[2383],{"type":59,"value":2384},"  y",{"type":54,"tag":135,"props":2386,"children":2387},{"style":159},[2388],{"type":59,"value":1319},{"type":54,"tag":135,"props":2390,"children":2391},{"style":169},[2392],{"type":59,"value":156},{"type":54,"tag":135,"props":2394,"children":2395},{"style":159},[2396],{"type":59,"value":1328},{"type":54,"tag":135,"props":2398,"children":2399},{"style":169},[2400],{"type":59,"value":188},{"type":54,"tag":135,"props":2402,"children":2403},{"style":159},[2404],{"type":59,"value":198},{"type":54,"tag":135,"props":2406,"children":2407},{"class":137,"line":531},[2408,2413,2417,2421,2425,2429],{"type":54,"tag":135,"props":2409,"children":2410},{"style":169},[2411],{"type":59,"value":2412},"  o",{"type":54,"tag":135,"props":2414,"children":2415},{"style":159},[2416],{"type":59,"value":1319},{"type":54,"tag":135,"props":2418,"children":2419},{"style":169},[2420],{"type":59,"value":156},{"type":54,"tag":135,"props":2422,"children":2423},{"style":159},[2424],{"type":59,"value":1328},{"type":54,"tag":135,"props":2426,"children":2427},{"style":169},[2428],{"type":59,"value":970},{"type":54,"tag":135,"props":2430,"children":2431},{"style":159},[2432],{"type":59,"value":198},{"type":54,"tag":135,"props":2434,"children":2435},{"class":137,"line":561},[2436,2441,2445,2449,2453,2457],{"type":54,"tag":135,"props":2437,"children":2438},{"style":169},[2439],{"type":59,"value":2440},"  para",{"type":54,"tag":135,"props":2442,"children":2443},{"style":159},[2444],{"type":59,"value":1319},{"type":54,"tag":135,"props":2446,"children":2447},{"style":169},[2448],{"type":59,"value":156},{"type":54,"tag":135,"props":2450,"children":2451},{"style":159},[2452],{"type":59,"value":1328},{"type":54,"tag":135,"props":2454,"children":2455},{"style":169},[2456],{"type":59,"value":490},{"type":54,"tag":135,"props":2458,"children":2459},{"style":159},[2460],{"type":59,"value":198},{"type":54,"tag":135,"props":2462,"children":2463},{"class":137,"line":591},[2464,2469,2473,2477,2481,2485],{"type":54,"tag":135,"props":2465,"children":2466},{"style":169},[2467],{"type":59,"value":2468},"  no",{"type":54,"tag":135,"props":2470,"children":2471},{"style":159},[2472],{"type":59,"value":1319},{"type":54,"tag":135,"props":2474,"children":2475},{"style":169},[2476],{"type":59,"value":156},{"type":54,"tag":135,"props":2478,"children":2479},{"style":159},[2480],{"type":59,"value":1328},{"type":54,"tag":135,"props":2482,"children":2483},{"style":169},[2484],{"type":59,"value":910},{"type":54,"tag":135,"props":2486,"children":2487},{"style":159},[2488],{"type":59,"value":198},{"type":54,"tag":135,"props":2490,"children":2491},{"class":137,"line":621},[2492,2496],{"type":54,"tag":135,"props":2493,"children":2494},{"style":159},[2495],{"type":59,"value":1924},{"type":54,"tag":135,"props":2497,"children":2498},{"style":142},[2499],{"type":59,"value":1988},{"type":54,"tag":55,"props":2501,"children":2502},{},[2503],{"type":59,"value":2504},"y de esta forma tenemos todos los tokens que necesitamos para esta primera versión, estos tokens serán usados por el lexer para identificar los tokens en el código fuente como el siguiente:",{"type":54,"tag":125,"props":2506,"children":2509},{"className":2507,"code":2508,"language":47,"meta":7,"style":7},"language-codexivo","// Definición de variables\nvariable n = 10;\nvariable m = 20;\nvariable q = \"hola mundo\";\n\n// Definición de procedimientos\nprocedimiento suma(a, b) {\n  regresa a + b;\n}\n\nprocedimiento resta(a, b) {\n  regresa a - b;\n}\n\nprocedimiento multiplicacion(a, b) {\n  regresa a * b;\n}\n\nprocedimiento division(a, b) {\n  regresa a / b;\n}\n\n// Llamadas a procedimientos\nsuma(n, m);\n\nresta(n, m);\n\n// Bucle \"para\" con condición y cuerpo de bucle\npara (variable i = 0; i \u003C 10; i = i + 1) {\n    multiplicacion(n, m);\n}\n// Bucle \"hacer-mientras\" con condición y cuerpo de bucle\nhacer {\n  division(n, m);\n} hasta_que (n > 0);\n",[2510],{"type":54,"tag":108,"props":2511,"children":2512},{"__ignoreMap":7},[2513],{"type":59,"value":2508},{"type":54,"tag":55,"props":2515,"children":2516},{},[2517,2519,2524],{"type":59,"value":2518},"Con el código de ejemplo anterior, podemos ver cómo Codexivo está tomando forma poco a poco. Hemos definido los ",{"type":54,"tag":108,"props":2520,"children":2522},{"className":2521},[],[2523],{"type":59,"value":113},{"type":59,"value":2525},", los símbolos y las palabras clave que formarán la base del lenguaje. Además, hemos utilizado una variedad de tokens en el código de ejemplo para ilustrar su funcionamiento.",{"type":54,"tag":55,"props":2527,"children":2528},{},[2529],{"type":59,"value":2530},"A medida que avancemos en esta serie de posts, exploraremos más aspectos de Codexivo, como el analizador sintáctico (parser) y el árbol de sintaxis abstracta (AST). Estos elementos nos permitirán comprender y ejecutar el código escrito en Codexivo.",{"type":54,"tag":55,"props":2532,"children":2533},{},[2534],{"type":59,"value":2535},"¡Es emocionante ver cómo tu lenguaje de programación está evolucionando! Continúa siguiendo esta serie de posts para descubrir más sobre el proceso de creación de un lenguaje de programación y los conceptos clave de Codexivo.",{"type":54,"tag":2537,"props":2538,"children":2539},"style",{},[2540],{"type":59,"value":2541},"html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":165,"depth":165,"links":2543},[],"markdown","content:blog:creacion-de-un-lenguaje-tokens.md","content","blog/creacion-de-un-lenguaje-tokens.md","md",1706297813442]