StevensDeptECE / GrailGUI

GrailGUI is a prototype of a replacement for web programming (HTTP, HTML, CSS, JavaScript) and GUI programming. It includes a client graphical API, a browser implemented in C++ and OpenGL, a protocol to transmit metadata and data in binary, a language (XDL) to describe the binary data, and local storage to retain data on the client should that be necessary. Encrypted communications (equivalent of TLS) have not yet been implemented.
GNU General Public License v3.0
7 stars 14 forks source link

Consider generating XDL Builtin Types from a script similar to #22 #25

Closed ahuston-0 closed 3 years ago

ahuston-0 commented 3 years ago

Currently util/datatype.hh and util/datatype.cc have to be updated by hand whenever we add a new builtin XDL Type, and while this isn't the worst thing in the world, we should really consider just auto-generating the class and header so we can just add a line to a JSON file whenever we update std.cc to have a new type.

Proposal:

ahuston-0 commented 3 years ago

Note: There is a bit more code to write for this one than in #22 because there are other libraries and functions that need to get generated, but those should not change and can probably be written out as a constant string.