-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c134e11
commit 52048e1
Showing
1 changed file
with
2 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
[![forthebadge](https://forthebadge.com/images/badges/contains-tasty-spaghetti-code.svg)](https://forthebadge.com) | ||
# Jasm rewrite | ||
# Jasm | ||
|
||
This is a rewrite branch of JASM using a new syntax, and error recovery | ||
mechanism. | ||
|
||
## New syntax approach | ||
Instead of using the classic `end` keyword, i have chosen to adopt a operator driven design: | ||
```jasmin | ||
.class public HelloWorld { | ||
.method public static main([Ljava/lang/String;)V { | ||
parameters: [args] | ||
code: { | ||
getstatic HelloWorld.out Ljava/io/PrintStream; | ||
ldc "Hello World!" | ||
invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V | ||
return | ||
} | ||
} | ||
} | ||
``` | ||
Jasm is a Java and Dalvik (coming soon™) assembler suit. |