Crates.io | hapl |
lib.rs | hapl |
version | 0.0.1 |
source | src |
created_at | 2024-01-19 21:39:13.571415 |
updated_at | 2024-01-19 21:39:13.571415 |
description | XAPL is a programming language which extends XML and compiles to JavaScript. |
homepage | https://github.com/mt4f/xapl |
repository | https://gihub.com/mt4f/xapl |
max_upload_size | |
id | 1105761 |
size | 2,833 |
XML as a programming language
As you might know, XML itself isn't a programming language, but rather a markup language - like markdown ( .md ). Well, I decided to implement basic features of programming languages like control flow, variables, functions, etc. into XML directly. My vision is that this might be used for visual programming languages, rather than actually manually coding in this language.
There are basically two options for running programming languages. The first one is to compile the source code into an executable which is then ran by the operating system. The second and way easier approach is to "interpret" the source code, which means basically running it line by line. This however can be more tedious because in order to run the application, the user needs to have the interpreter installed on their machine, but it saves you the effort of writing a compiler.
I decided to go with a compiled language, but instead of compiling to machine code, I'll compile to javascript. This is so that my language will have access to the gigantic collection of js libraries and modules, and also this allows developers to integrate their work into nodejs / npm.