HaletasWeb banner

HaletasWeb

5 devlogs
61h 15m 42s

My personal website created using my DSL written in C++ to generate HTML programmatically

Demo Repository

Loading README...

haletas88

Kind of forgot to make a devlog for this but I added a way to make create functions using the JS DSL. It’s currently not perfect, as there are a few safety issues that need fixing and functions aren’t currently appended to the top of the JS automatically.

Images below small test.

Attachment
Attachment
0
haletas88

The JS DSL now allows you to do things like foo.bar(args) via the syntax foo(“bar”, args…). There isn’t really much else to say. (:

Images below showing the implementation and some tests.

Attachment
Attachment
Attachment
Attachment
Attachment
0
haletas88

Made a few improvements to the JS DSL including:

  • Support for arrays
  • Console.log, info, warn, error, debug, and trace
  • Made dynamic variables work with arithmetic
  • Spilt js.h into js.h, jsCore.h, variable.h, and console.h also removed js.cpp so it’s header only

Images below showing a test script and it’s output. Also the extra ’;‘s are a side effect I haven’t fixed yet

Attachment
Attachment
1

Comments

Prithiv Ponns
Prithiv Ponns about 1 month ago

good work

haletas88

Working on a JavaScript DSL in C++ so I can have the project be 100% c++ as well as being able to have static typing and use some C++ features. Hopefully I can implement functions or console.log next

Images below show 2 test files and their outputs (I would show more but a can’t upload that many files). I can’t show the implementation here because it’s too big so if you want to see that you will have to go onto my GitHub

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
haletas88

Turned my skills list into an interactive physics ball pit. Learnt how to use Matter.js and was reminded that I hate JavaScript.

Attachment
Attachment
0