Skip to content

Commit

Permalink
v1.1: jdk dependency replaced with ASM-library dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Feb 16, 2023
1 parent 3c6b42c commit 76857c8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .idea/libraries/ow2_asm_all.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RunExp <sub>v1.0</sub>
# RunExp <sub>v1.1</sub>
A lightweight runtime math expressions solver/compiler for JVM.
- does not use any scripting engine
- uses java reflection
Expand All @@ -10,6 +10,17 @@ Future:
- double precision expressions

Download <a href=https://github.com/MihailRis/runexp/releases/download/v1.0.0/runexp_v1.0.0.jar>built jar library file</a> from GitHub


## Dependecies:

RunExp requires one dependency since v1.1

### [ASM](https://asm.ow2.io/)
**version used:** asm-all-5.2

ASM is used for runtime java-bytecode generation.

## Usage:

with x:
Expand Down
2 changes: 2 additions & 0 deletions runexp.iml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/.idea" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="ow2.asm.all" level="project" />
</component>
</module>
9 changes: 5 additions & 4 deletions src/mihailris/runexp/JvmCompiler.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package mihailris.runexp;

import jdk.internal.org.objectweb.asm.ClassWriter;
import jdk.internal.org.objectweb.asm.MethodVisitor;
import jdk.internal.org.objectweb.asm.Type;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Type;

import java.lang.reflect.Method;

import static jdk.internal.org.objectweb.asm.Opcodes.*;
import static org.objectweb.asm.Opcodes.*;


public class JvmCompiler {
private final RunExpSolver solver;
Expand Down

0 comments on commit 76857c8

Please sign in to comment.