Logic gates? LogicGate!

Because of a bet from me and my entire class where I can make a programming language from having no knowledge of how to code, all in this year.
Here we have a prototype
The LogicGate
This is an esolang I made which is inspired by logic gates, very obvious(lol)

This language can compile and decompile stuff, where because of my own technical problem it is designed for manual encryption.

Now in this link we can see
the main module, LogicGate.py
the code, main.lgeso
and everyone should know this, main.py

This template program compiles the “Hello World!” into lgeso code and run it, you guys can try to have fun with it, or testing it’s limit without touching any of the code in LogicGate.py

Documentation: LogicGate - Esolang

7 Likes

It is now published as template, I was speed drawing its icon lol

Feel free to fork it and try different functions

1 Like

Cool! Do you have network access implemented?

I don’t think so as I’m still a newbie in programming, how to do that?

I love how the license is mispelt and named LISENSE :laughing:

This is a very cool program. Frankly, I can’t even begin to comprehend the monstrosity that is main.lgeso :laughing:

Sorry I’m from Asia and my English is not that good

Also yes this esolang is designed for manual encryption so I don’t think you can easily read the raw code

1 Like

No clue how it works, but I commend any try at new languages!

Basically, one line is one bit
The bit being 1 or 0 is determined by the gates of that line
If you set ascii to True it will convert the result to ascii, separated by any line with —(3 hyphens)
Gates:
A(and gate)
O(or gate)
N(not gate)
Example use case:
A10 → 0(and gate with 1 and 0)
O10 → 1(or gate with 1 and 0)
N1 → 0 (not gate with 1)
OA101 → 1 (or gate with (and gate with 1 and 0) and 1)
Etc

2 Likes

Example code:
The binary of ascii E is 1000101
The binary of ascii e is 1100101
So to output E
You can do like

1
0
0
0
1
0
1

Done
Or you can like
A11
AON010
ON10
O00
A1N0
NNNNNN0
AOAO10101

It’s the same, that’s why I say this is a manual encryption language

Also if you want to output Ee you can go
1
0
0
0
1
0
1
—- (three hyphens here)
1
1
0
0
1
0
1

And done

nice. BTW you did nt need all gates, you just needed the NAND gate and let people define other gates :slight_smile:

Well since I want to make an INCLUDE function like python’s import
And then I failed unable to prevent exploits to the code and process multi output gates

But yeah I am still working on it

1 Like

Keep going. making an esoteric lng is fun.

1 Like

And sometimes frustrating lol
Like one time me adding a check para to the run function, and struggled on colouring for 6 hours

I was about to have mental breakdown and my stack overflow saved me lmao

Frustration is the teacher of programmer … if programming does nt bring frustration than nothing new is being done (well this is true un anything actually).

Now I sound like when I am preaching my kids … :scream:

Well I agree, no pain no gain right?
Just that some of us is already having too much pressure and now facing pressures created by themselves.

Still I love programming, and is ready to suffer from it
(Yay time to have mental breakdown)

Do not tell me that.
I have immense pressure at work, busy at home, and getting frustrated over few things I am programming in my little free time. And no regrets!

Personal question tho, how many of us is about or already bold because of programming too much

(I’m 15 tomorrow and my hair is already losing)

Programming is not why people (well I) get bold … it is genetic. Stress only accelerate the inevitable.