Jump to content




LymeCode - A small programming language that is using pointers


6 replies to this topic

#1 kornichen

  • Members
  • 220 posts
  • LocationGermany

Posted 01 May 2013 - 04:52 AM

Hello!

When GravityScore uploaded his Brainf**k interpreter I tried to do something with it. Some time ago I noticed that there could be some more functions so I developed a programming language like Brainf**k but with some more functions.

Functions
> Increment data pointer
< Decrement data pointer
+ Increment byte of pointer by one
- Decrement byte of pointer by one
* Multiplicate pointer with the pointer below it
/ Divide pointer with the pointer below it
. Output byte of data pointer
, Output byte of data pointer in ASCII
: Accepts byte of input to store in data pointer (Byte or ASCII)
[ Loops are coming soon!
]

Example Code
Preparing for printing text
+++++++++++++>+++++*
>+++++++++++++++>+++++*
>+++++++++++++++++>+++++*
Writing text
<<---,+++
<<++++,----
>>+,,-
++++,----
>>++,--
<<++++,----
>>---,+++
<<+,-
<<+++,---
Explanation:
Spoiler

Usage
Download LymeCode as shown below and run it with this arguments:
LymeCode <path>
Replace <path> with your LymeCode program.

Download
Pastebin: BPKqaYrC
Type into your computer to download directly:
pastebin get BPKqaYrC LymeCode


#2 darkrising

  • Members
  • 234 posts
  • LocationScotland

Posted 01 May 2013 - 08:50 AM

:huh: Mind Blown.

#3 TheVarmari

  • Members
  • 70 posts
  • LocationFinland

Posted 01 May 2013 - 12:46 PM

So basically like braineff?

#4 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 01 May 2013 - 01:28 PM

View Postdarkrising, on 01 May 2013 - 08:50 AM, said:

:huh: Mind Blown.
Indeed, lol.
hmm.. nice?

#5 Mandrake Fernflower

  • Members
  • 117 posts
  • LocationDark Side of The Moon

Posted 02 May 2013 - 11:24 AM

Clever, Its like BrainF**k but more asm like

#6 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 03 May 2013 - 02:04 PM

I like it

#7 kornichen

  • Members
  • 220 posts
  • LocationGermany

Posted 04 May 2013 - 02:04 AM

View Postsuperaxander, on 03 May 2013 - 02:04 PM, said:

I like it

Thank you. Loops are coming soon.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users