H (Hammy)

From Esolang
Jump to navigation Jump to search

H is a programming language by User:Hammy which is like Python, C and some random junk thought up by the creator of the esolang mixed together. The file extension is .h, but strangely you have to use .hlb for libraries.

Commands

Base rules

  1. A program is a bunch of functions. The function "main" is run first.
  2. It's object oriented (unlike Classese assasend objendclassese assasend objendtsend!, the creator actually knows what this means)
  3. It's cool

H 1.0: The beginning

This section is still a work in progress. It may be changed in the future.

H 1.0 is the first version of H.[more info needed]

The basics

This is the form of a program:

! import htools/libraries/testing/hw.hlb # imports the library hw from the testing section of the official set of libraries
! import sysroot/win/c/users/hammy/cool stuff/coding/h/cat.hlb # imports the library cat from C:\Users\hammy\cool stuff\coding\h, but only if you're on windows (i am :D). the folder win can be replaced with mac for MacOS, lnx for linux or huh for anything else
! import htools/folderref/current/tm.hlb # imports the library tm from the curremt folder this program is in
def mix(void) { # example of defining functions that aren't main
 hw.main();
 cat.main();
 tm.main();
def main(void) {
 this.mix(); # run function "mix" from this program