Crates.io | truemoji-core |
lib.rs | truemoji-core |
version | 0.1.0 |
source | src |
created_at | 2023-01-21 00:57:26.252434 |
updated_at | 2023-01-21 00:57:26.252434 |
description | Core library for the Truemoji language specification. |
homepage | |
repository | https://github.com/bobertoyin/truemoji/tree/main/truemoji-core |
max_upload_size | |
id | 763928 |
size | 27,784 |
This library contains the core specification and implementation of the Truemoji language, which is a language for describing propositional logic. TLDR: I replaced the propositional logic operators with emojis!
<iff> := <implies> 🤝 <iff> | <implies>
<implies> := <or> 👉 <iff> | <or>
<or> := <and> 🙌 <or> | <and>
<and> := <not> 👏 <and> | <not>
<not> := 🚫 <formula> | <formula>
<formula> := [A-Za-z0-9] | 👍 | 👎 | 😮 <iff> 😶
This crate implements a lexer, parser, and abstract syntax tree (AST) for the Truemoji language. The truth values for ASTs can be evaluated as long as each formula has an boolean value associated with it.