Skip to content

Techno-coder/lexica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A reversible programming language.

fn fibonacci(n: u64) -> u64:
	let ~first = 1
	let ~second = 1

	let ~counter = 1
	loop counter == 1 => counter == n:
		let summation = first + second
		first <=> second
		second <=> summation

		drop summation = second - first
		counter += 1

	drop n = counter
	second

Installation

cargo +nightly install --locked --git https://github.com/Techno-coder/lexica

Usage

lexica <path>/main.lx

Commands

  • context - Displays the compiler context state
  • basic <reversible|entropic> <function> - Displays the basic node lowering of a function
  • evaluate <function> - Evaluates and returns the result of a zero arity function
  • cycle <function> - Evaluates and reverses and returns the parameter values of a zero arity function

Influence

Lexica has been influenced by:

and many other languages.

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy