Lazarus

Announcements => Third party => Topic started by: Edson on January 07, 2017, 03:37:08 am

Title: t-Xpres - library for Compilers and Interpreters
Post by: Edson on January 07, 2017, 03:37:08 am
https://github.com/t-edson/t-Xpres

t-Xpres es una pequeña librería y framework para desarrollar compiladores e intérpretes con Lazarus. Incluye un lexer, parser, arbol de sintaxis, y analizador de expresiones, que pueden ser usadas independientemente o en conjunto para construir compiladores e intérpretes. Aún está en fase de desarrollo, pero  puede ser usado para implementaciones sencillas.

t-xPres is a small library and framework to create Compilers and Interpreters using Lazarus. Includes a lexer, a parser, a Syntax Tree, and Expression Analizer, that can be used independently or together to build compilers and interpreters. It's still in development, but can be used in simple implementations. Documentation, only in spanish  by now :-[
Title: Re: t-Xpres - library for Compilers and Interpreters
Post by: lainz on January 07, 2017, 02:00:26 pm
Tengo que probarlo, se ve interesante!

Title: Re: t-Xpres - library for Compilers and Interpreters
Post by: edwinyzh on January 11, 2017, 04:21:58 pm
Edson, sounds very cool! I wish at least the comments are in English...
Title: Re: t-Xpres - library for Compilers and Interpreters
Post by: Edson on January 11, 2017, 06:47:52 pm
Edson, sounds very cool! I wish at least the comments are in English...
Maybe, someone can translate de documentation. My English is no so good :(

At least, I have tried to use names for Types, variables, classes; in English.
Title: Re: t-Xpres - library for Compilers and Interpreters
Post by: turrican on January 12, 2017, 09:21:52 pm
Gracias crack, Le echaré un vistazo. Tu crees que se podría usar como lenguaje interpretado para integrarlo en un videojuego (tipo LUA). ?
Title: Re: t-Xpres - library for Compilers and Interpreters
Post by: Edson on January 12, 2017, 09:54:47 pm
Tu crees que se podría usar como lenguaje interpretado para integrarlo en un videojuego (tipo LUA). ?

Claro, si no es muy complicada la sintaxis.
Yo he usado t-Xpres para implementar, con éxito, el intérprete del programa Tito's Terminal (https://github.com/t-edson/Tito-s-Terminal)
Puedes usar el ejemplo "/Demo5 - Interprete basico", como una base para crear tu intérprete.
Cualquier consulta, puedes hacerla por este medio.


Saludos.
Title: Re: t-Xpres - library for Compilers and Interpreters
Post by: turrican on January 12, 2017, 10:21:13 pm
WOW! Le echaré un vistazo. :)
TinyPortal © 2005-2018