项目作者: IcedGarion

项目描述 :
Simple example of JCUP and JFLEX using.
高级语言: Java
项目地址: git://github.com/IcedGarion/jcup-jflex.git
创建时间: 2017-09-15T10:16:22Z
项目社区:https://github.com/IcedGarion/jcup-jflex

开源协议:

下载


README

Uniupo university, Science & Technologic Innovation dept., Language&Translators Lab course Project

This repository is about a simple example of JCUP and JFLEX using. In this example, a simple new programming language is defined (only declarations, assignments and prints) and then parsed, translated into JAVA and then executed.

The language sintax is like the following:

LET i=10;

34+i;

LET j=i+5;

j+i;

(Where ‘LET’ precedes a declaration and the other instructions are operations and prints). For every line of code a message is printed: it contains the result of the line operation, which is parsed, translated and executed via JAVA instructions (like a simple sum)