Skip to main content

A programming language that doesn't scream at you. Phonetic shortcuts, forgiving syntax, zero indentation fascism.

Project description

hypnotIC

CI PyPI version Python 3.8+ License: MIT

I see what you meant.

A programming language that doesn't scream at you. It understands.

* "Hello, world!"

Why hypnotIC?

Because code should understand you, not the other way around.

  • No indentation fascism - Use IC to close blocks, not whitespace
  • Phonetic shortcuts - Type how you think (4 = for, wyl = while, ? = if)
  • Forgiving syntax - Warnings, not errors when possible
  • Fun - Programming should be fun, not frustrating

Installation

pip install hypnotic

Or just grab hypnotic.py and run it directly:

python hypnotic.py

Quick Start

Hello World

* "Hello, world!"

Variables

name = "Zach"
age = 25
active = t

Conditionals

? age > 21
    * "welcome"
file age > 18
    * "almost"
Ls
    * "nope"
IC

Loops

4 i n 10
    * i
IC

Functions

fun greet name
    * "Hello, " + name
IC

greet "world"

FizzBuzz (because you were wondering)

4 i n 100
    ? i mold 15 iz 0
        * "FizzBuzz"
    file i mold 3 iz 0
        * "Fizz"
    file i mold 5 iz 0
        * "Buzz"
    Ls
        * i
    IC
IC

The Dictionary

Normal hypnotIC Notes
print * splat it out
input PV 5th grade humor
if ? questioning
else Ls sounds like "else"
elif file elif backwards
for 4 sounds like "for"
in n sounds like "in"
while wyl
function fun it should be
return re: like email reply
true t
false f
and &
or or / RHO normal / nerdy
not - negation
== iz sounds like "is"
!= aint ain't
break x cross it out
continue --> keep going
null N^0 nothing to the zero
comment fuck ignore this
end block IC "I see"
array rayz sounds like "arrays"
append up push up
pop !!! explosive
length " inches
lambda \ quick function
try hard try hard
catch C catch
import -> pull it in
self ego the object's ego

Running hypnotIC

# Interactive REPL
hypnotic

# Run a file
hypnotic myprogram.ic

# One-liner
hypnotic -c "* \"Hello!\""

# Debug mode (see tokens and AST)
hypnotic -d myprogram.ic

File Extension

.ic - because IC what you did there.

Examples

See the examples/ directory for more programs:

  • showcase.ic - Tour of language features
  • hello.ic - The classic

Philosophy

  1. IC sees your intent - The parser tries to understand what you meant
  2. No indentation fascism - Use IC to close blocks
  3. Phonetic shortcuts - Type how you think
  4. Forgiving - Warnings, not errors when possible
  5. Fun - Programming should be fun, not frustrating

Contributing

Found a bug? Want to add a feature? PRs welcome. See CONTRIBUTING.md for details.

License

MIT - Do whatever you want.


"Find what you love and let it kill you." — hypnotIC

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypnotic-0.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hypnotic-0.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file hypnotic-0.1.0.tar.gz.

File metadata

  • Download URL: hypnotic-0.1.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hypnotic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb31065667c327101e5319715a275b5ce9638dfbaf8db0269770ec57416b3187
MD5 e6e7f452fc0bad28986e2d565985ff79
BLAKE2b-256 70c57f61184c35e302ed37e9028e9e25d297393663c8cd1c276cb2fda941209b

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypnotic-0.1.0.tar.gz:

Publisher: publish.yml on zachseven/hypnotic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hypnotic-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hypnotic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hypnotic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 277752e5703635729dfc31766604068f7dfe5dbb8265cd1d0dc737ea338a8301
MD5 c5f4e3f045fb6fe0ef5d9a853e4602fa
BLAKE2b-256 b7ebf16245a209148d859d89561943fc1d31ed1fed03cdfa5231c631abf7625c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypnotic-0.1.0-py3-none-any.whl:

Publisher: publish.yml on zachseven/hypnotic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page