yananlemon / LemonC

Lemon语言的编译器,目标代码是Java字节码,可以运行在JVM之上。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A compiler front realization based on Java,it can generate Java byte code and then running on JVM.The LemonC include:

  1. lexical analysis
  2. syntactic parsing
  3. semantic analysis
  4. code generation

The following steps explain how to run.

  1. require:
    (1)jdk1.8+
    (2)maven3.3+
  2. use mvn install command to intall jasmin.jar to your local repository
	mvn install:install-file -DgroupId=com.jasmin -DartifactId=jasmin -Dversion=1.0 -Dpackaging=jar -Dfile=/Users/yanan/git/LemonC/jars/jasmin.jar
  1. Build executable jar
	mvn assembly:assembly
  1. compile the lemon language with LemonC
	java -jar LemonC-0.1-beta-jar-with-dependencies.jar CalHeightOfChild.lemon
  1. run with java
	java CalHeightOfChild

please refer this link to get more informationmore information

About

Lemon语言的编译器,目标代码是Java字节码,可以运行在JVM之上。

License:Apache License 2.0


Languages

Language:Java 100.0%