Skip to content

Commit

Permalink
Added ability to use size type prefix for registers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkhoury committed Feb 5, 2019
1 parent 3b8541c commit 8141a03
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 11 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A plugin that adds NASM support for the IntelliJ Platform IDEs.

# Features

Version v0.4-beta.4 pre-release
Version v0.4-beta.5 pre-release

FPU, MMX, SSE, SSE2, SSE3, SSE4, AVX, AVX2, AVX512, Virtualization, and General instruction support.
Syntax highlighting.
Expand All @@ -23,9 +23,9 @@ Version v0.4-beta.4 pre-release
- Goto Symbol
- Debugger Support

# v0.4-beta.4 Changes
# v0.4-beta.5 Changes

Macro parameters can now be any expression or mnemonic.
Added size type prefix for registers.

# Complete Changelog

Expand Down Expand Up @@ -70,6 +70,7 @@ Version v0.4-beta.4 pre-release
Began adding more conditions for conditional expressions.
Added ability to use non-local to macro labels.
Macro parameters can now be any expression or mnemonic.
Added size type prefix for registers.

# License

Expand Down
18 changes: 13 additions & 5 deletions gen/com/nasmlanguage/parser/NASMParser.java

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

3 changes: 3 additions & 0 deletions gen/com/nasmlanguage/psi/NASMReg.java

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

6 changes: 6 additions & 0 deletions gen/com/nasmlanguage/psi/impl/NASMRegImpl.java

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

5 changes: 3 additions & 2 deletions resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<idea-plugin>
<id>com.nasmlanguage</id>
<name>NASM Assembly Language</name>
<version>0.4-beta.4</version>
<version>0.4-beta.5</version>
<vendor email="aidankhoury@gmail.com" url="https://github.com/ajkhoury">Aidan Khoury</vendor>

<description><![CDATA[
<h1>NASM assembly language for JetBrains IDEs</h1>
<br>
<h2>Version v0.4-beta.4 pre-release</h2>
<h2>Version v0.4-beta.5 pre-release</h2>
<br>
<h3>Features</h3>
<ul>
Expand Down Expand Up @@ -72,6 +72,7 @@
<li>Began adding more conditions for conditional expressions.</li>
<li>Added ability to use non-local to macro labels.</li>
<li>Macro parameters can now be any expression or mnemonic.</li>
<li>Added size type prefix for registers.</li>
</ul>
]]>
</change-notes>
Expand Down
2 changes: 1 addition & 1 deletion src/com/nasmlanguage/NASM.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ ParenthesisNumericExpr ::= ROUND_L NumericExpr ROUND_R { pin(".*")=1 extends=Num
NumericLiteral ::= ((SIZE_TYPE (BITWISE_NOT|MINUS|PLUS)?)? (BINARY|ZEROES|HEXADECIMAL|DECIMAL|CHARACTER)) { extends=Expr }
Identifier ::= ID { extends=Expr mixin="com.nasmlanguage.psi.impl.NASMNamedElementImpl" implements="com.nasmlanguage.psi.NASMNamedElement" methods=[getName setName getNameIdentifier getReferences getPresentation] }
LabelIdentifier ::= (SIZE_TYPE? (LBL|ID)) { extends=Expr }
Reg ::= REGISTER { extends=Expr }
Reg ::= SIZE_TYPE? REGISTER { extends=Expr }
Seg ::= SEGMENT_REGISTER { extends=Expr }
Str ::= STRING { extends=Expr }
StructureField ::= STRUCT_FIELD { extends=Expr }
Expand Down

0 comments on commit 8141a03

Please sign in to comment.