Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

User:Circlepuller/Venom

From Encyclopedia Dramatica
This is an old revision of this page, as edited by imported>Circlepuller at 06:34, 29 June 2011. It may differ significantly from the current revision.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Venom is an exciting idea of a programming language by me.

// Venom
(@(random)) // Import a class called "random"
.int($random_number) = %random.randint(0,1)
// Integer "random number" is a random integer from the random class's "randint" function
// Let's do an if statement with it
(?($random_number == 1))
   .print("Fuck you")
(?())
   .print("Hello")
.print(", World!\n")
/*
If the integer "random_number" has the value of 1, it would say "Fuck you, World!"
Else it would say "Hello, World!"

Onto a different file.
*/
// There would be a huge library for basics
(@(%arr))
(@(%flt))
(@(%hex))
(@(%int))
(@(%str))
// This is a class named "myclass"
(%(myclass))
   + str($mystring)
   + (.(__construct()))
      // A construct
      .print("HI\n")
      // This sets a value for the class's "mystring"
      %this$mystring = "HI, HOW ARE YOU?\n"
   // This function is "protected"
   +- (.(reply()))
      // More interestingly, you can set local vars by making the "%this" a ".this"
      - str($funcstring) = "LOCAL STRINGS\nHOW DO THEY WORK?\n"
      .print(%this$mystring, .this$mystring)