Jump to content

Bracket Hax - Esolang

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#1
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
TITLE
Bracket Hax - Esoteric Programming Language


CHANGE LOG


***** August 16, 2008 *****
First release of the Bracket Hax Interpreter, the release is called V .1 .

Known issues
- Lack of error checking.
- If a '#' symbol is missing the interpreter will just run indefinitely.
- If a back-end grouping symbol is not separated by a space from a set of
characters preceded by a '&' symbol, the interpreter will run through
and not stop.
- A loop that never evaluates to false, will make the interpreter run
indefinetly.
- Known bug with multiple while loops, fix in next version
- Also writing a getch() function to eliminate the conio.h library, full cross platform then.

LANGUAGE: C++

TESTED SYSTEMS: Windows XP

LICESNSE: Open Source, see guidelines in the attachment.

PRICE: Free SON


Quote

Example Code
Fibonacci's Sequence
# (0 + 0 = !f 0 + 1 = !g) #
# ($RESD $DISP 0 + !f = !f ~ 0 + !g = !g ~) #
#{[^ !f < 200] $RESD $DISP !f + !g = !f ~ !f + !g = !g ~} #

Quote

Example Code
Print 1 through 10
#(0 + 0 = !r) #
#[{^ !r < 10} $RESD $DISP !r + 1 = !r ~] #

Contact me, MeTh0Dz, at MeTh0Dz_@hotmail.com.

Attached Files


Edited by MeTh0Dz|Reb0rn, 16 August 2008 - 01:37 PM.


#2
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
Bugs accounted for, and the next version is underworks.

Edited by MeTh0Dz|Reb0rn, 16 August 2008 - 01:30 PM.


#3
Chewie

Chewie

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,579 posts
Hmmmm interesting.

:D Meth0dz is stepping it up!

#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like Linux?
“The cure for boredom is curiosity. There is no cure for curiosity.”


#4
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
I think that the way the syntax works is pretty cool, and I've never seen a language that puts its lvalues on the right! Although, I don't quite understand what the # characters are supposed to do. My guess is that the toggle interpretation on and off, thus separating the code into chunks for the line-by-line interpreter. Right?

#5
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
Yeah the lvalue setup is definitely different. But it makes the most sense staying with the overall design of the language.

With the '#' you are pretty much right on the head with your inference. They signify the beginning and end of a line of code (for the interpreter primarily). So anything outside of them is basically a comment and is ignored by the interpreter.

#6
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
'Kay, I have another question: in bracket hax, why is it necessary to put #(0 + 0 = !r) # rather than #(0 = !r) #? Is there a syntactic reason for this?

#7
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
Actually there no longer is no real syntactic reason to do this. In an early version it had to be done like that, but I eliminated the dependency. I did however leave it in the guidelines as I didn't want to confuse people, as I wanted it to be clear that you were assigning the value to the variable, not the other way around.

I should probably change that though, as it isn't really necessary.

*My examples and stuff were older so you are going to notice that syntax in them, however I'll change the guidelines. Thanks for pointing that out.

#8
Chewie

Chewie

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,579 posts
See a response Meth, be happy!

#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like Linux?
“The cure for boredom is curiosity. There is no cure for curiosity.”


#9
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
Lol, ^^.

#10
Chewie

Chewie

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,579 posts
:p hehe.

#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like Linux?
“The cure for boredom is curiosity. There is no cure for curiosity.”


#11
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I downloaded it and tried the examples.. seems.. sexy :D