MegaLoler / Side-by-Side-Functions

I like my functions side by side with control flow arrows XD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Side by side functions

do U want ur programs to look like this? ; )

  #include <stdio.h>
  
  int x ();
  int y ();
  int z ();
  
  int main () {
      return x ();
  }       /* │ */
          /* │ */
   /******** │ */
   /*        │ */
   /* ╭──────╯ */
   /* │        */
   /* │ ********/       /***************/
   /* │ */              /*             */
   /* │ */              /* ╭─────────╮ */
   /* │ */              /* │         │ */
   /* ▼ */              /* │ ******* ▼ */
                        /* │ */
  int x () {            /* │ */  int y () {
      puts ("lol hi");  /* │ */      puts ("hehe!");
      return y ();      /* │ */      return z ();
  }       /* │ */       /* │ */  }       /* │ */
          /* │ *********** │ */          /* │ */
          /* │             │ */          /* │ */
   /******** ╰─────────────╯ ************** │ */
   /*                                       │ */
   /* ╭─────────────────────────────────────╯ */
   /* │                                       */
   /* ▼ ***************************************/
  
  int z () {
      puts ("huhu!");
      return 0;
  }

(weird.c)

demo

TODO

  • make it auto generate these from existing programs

About

I like my functions side by side with control flow arrows XD

License:The Unlicense


Languages

Language:C 82.5%Language:Python 17.5%