Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add support for general assembly #12

Closed
DevynCJohnson opened this issue Sep 22, 2015 · 7 comments
Closed

Suggestion: Add support for general assembly #12

DevynCJohnson opened this issue Sep 22, 2015 · 7 comments

Comments

@DevynCJohnson
Copy link
Contributor

I noticed that EnlighterJS supports AVR-Assembly. I would like to suggest that assembly for the 8051 or general assembly syntax be added to EnlighterJS (unless the "avrasm" shortcode in the WordPress plugin already covers that).

By the way, I know JavaScript. How could I contribute by adding support for various programming languages?

@AndiDittrich
Copy link
Member

Dear Devyn,
is there any general language-reference (keywords, commands) available for assembly code ?
i thought it is platform/compiler depending ?

To develope language "addons" for EnlighterJS you can take a look into the following files

  • Source/Language/Template.mylang.js (Demo Language implentation used as entry point)
  • LanguageDevelopment.phtml (General Language Development Environment, requires a local webserver)

best regards, Andi

@DevynCJohnson
Copy link
Contributor Author

There are some forms of assembly that use different syntax and commands. However, 8051 assembly is used by numerous devices (mostly embedded), and many related forms of assembly use most of the same commands. Here is the instruction set and syntax - https://en.wikipedia.org/wiki/Intel_MCS-51#Instruction_set

Thanks for the info. By the way, I thought EnlighterJS supported HTML, but I am not seeing the file in https://github.com/AndiDittrich/EnlighterJS/tree/master/Source/Language . I am wanting to add MathML to the HTML template (MathML is included in the W3C HTML5 standard).

@DevynCJohnson
Copy link
Contributor Author

By the way, if I added support for Cython (an implementation of Python), should I make it its own file or in the Python file since Cython and Python share most of the same keywords?

@AndiDittrich
Copy link
Member

The HTML language is an alias for XML. But im currently working on EnlighterJS v3 which includes a new tokenizer engine with major (incompatible changes) which means that especally the XML/HTML language will change completely.

in case a language is a superset of another you should create a own file which extends the origin language. For example https://github.com/AndiDittrich/EnlighterJS/blob/master/Source/Language/Less.js

@DevynCJohnson
Copy link
Contributor Author

Okay, thank you for the help and info. I look forward to adding additional language support

@AndiDittrich
Copy link
Member

i've just added general assembly language support as well as some avr assembly improvements.
feel free to try it out.

@AndiDittrich AndiDittrich added this to the v2.10.0 milestone Nov 4, 2015
@AndiDittrich AndiDittrich self-assigned this Nov 4, 2015
@DevynCJohnson
Copy link
Contributor Author

Excellent! I look forward to seeing this in the next WordPress plugin update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants