awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
samshadwell avatar

samshadwell/TrumpScriptArchived

0
View on GitHub↗

TrumpScript

TrumpScript is a Python-based domain specific language and compiler extension that wraps the Python runtime to enforce custom grammar and vocabulary rules. It transforms a specialized, case-insensitive vocabulary and natural speech patterns into executable Python instructions.

The implementation distinguishes itself through strict constraints on source code, including a variable name system that restricts identifiers to a predefined whitelist and a numeric parser that rejects any integer not exceeding one million. It further utilizes a token-filtering preprocessor to remove filler words and non-functional phrases from the source code.

The project includes system-level execution restrictions that block compilation and running based on the host machine's operating system, locale, or hardware properties.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Domain Specific Languages - Provides a specialized programming language based on Python with restricted vocabularies and unique grammar.
  • Vocabulary Mapping - Maps a specialized, spoken-style vocabulary into instructions compatible with the Python runtime.
  • Domain Specific Languages - Implements a specialized language that limits available variables and numeric types for a conceptual purpose.
  • Language Interpreters - Interprets a programming language using a case-insensitive vocabulary based on specific speaking styles.
  • Language Wrappers - Wraps the Python runtime to transform natural speech patterns into executable instructions.
  • Token Filtering - Uses a token-filtering preprocessor to remove filler words and non-functional phrases from source code.
  • Compiler Extensions - Extends the compilation process to filter tokens and restrict variable names before executing Python.
  • Speech-Style Token Filtering - Discards unnecessary words from the source code to make it resemble natural human speech.
  • Syntax Extensions - Modifies how Python code is written and interpreted through token filtering and case-insensitivity.
  • Numeric Range Constraints - Limits numeric values to integers strictly greater than one million to enforce specific data requirements.
  • Restricted Runtimes - Provides an execution layer that limits numeric types and blocks compilation based on host hardware or locale.
  • Hardware and Locale Blocking - Prevents the program from running on forbidden hardware by checking host system properties and locale.
  • Identifier Naming Conventions - Restricts variable identifiers to a predefined list of approved words to enforce specific naming conventions.
  • Deployment Target Restrictions - Ensures the software only runs on specific operating systems or hardware to control the deployment target.
  • Host Hardware Restrictions - Blocks compilation or execution based on the host machine's operating system, locale, or hardware origin.
  • Identifier Validations - Restricts variable names to a predefined set of permitted strings during the semantic analysis phase.
  • Numeric Literal Constraints - Enforces a minimum threshold on integer literals by rejecting any number not exceeding one million.
  • Lexical Analysis - Implements case-insensitive lexical analysis to map stylized vocabulary into executable programming logic.
7,587 stars·392 forks·Python·MIT·16 views

Star history

Star history chart for samshadwell/trumpscriptStar history chart for samshadwell/trumpscript

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with TrumpScript

These projects share indexed features with TrumpScript. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • ohmjs/ohmohmjs avatar

    ohmjs/ohm

    5,471View on GitHub↗

    Ohm is a formal grammar parser generator and domain-specific language framework. It provides a system for defining custom languages to parse, validate, and extract data from input text, transforming raw strings into hierarchical abstract syntax trees based on specified formal rules. The project utilizes an Earley parsing algorithm, which allows it to support all context-free grammars, including those with left recursion and ambiguity, without requiring predefined operator precedence. It also includes a dedicated debugging toolkit for tracing and visualizing the step-by-step state transitions

    JavaScriptcompilergrammarsjavascript
    View on GitHub↗5,471
  • rhaiscript/rhairhaiscript avatar

    rhaiscript/rhai

    5,453View on GitHub↗

    Rhai is an embedded scripting engine and dynamically typed language designed for integration into Rust applications. It functions as an abstract syntax tree compiler and native interop layer, allowing developers to map Rust types and functions into a scripting environment for bidirectional communication. The project serves as a framework for creating customizable domain-specific languages. It allows for the definition of custom operators, syntax, and restricted execution environments, enabling the creation of specialized languages with tailored functional sets. The engine covers a broad rang

    Rustembeddedembedded-scripting-languageno-std
    View on GitHub↗5,453
  • bitemyapp/learnhaskellbitemyapp avatar

    bitemyapp/learnhaskell

    8,026View on GitHub↗

    This project is a comprehensive functional programming curriculum and learning resource for Haskell. It provides sequenced educational paths and technical reference guides designed to take developers from beginner to advanced levels of proficiency. The project distinguishes itself through a deep focus on theoretical and technical foundations, offering detailed studies on type theory, category theory, and runtime internals. It includes a dedicated performance handbook for optimizing execution speed and memory management, as well as an ecosystem guide for managing development tools and editor c

    Makefile
    View on GitHub↗8,026
  • holistics/dbmlholistics avatar

    holistics/dbml

    3,520View on GitHub↗

    DBML is a domain-specific language and schema definition language used for documenting database architecture and design. It provides a human-readable text format for defining database tables, columns, and relationships in a standardized way. The project functions as a relational schema parser and SQL schema generator. It transforms declarative design specifications into an abstract syntax tree for programmatic manipulation and converts these definitions into executable SQL statements across various database dialects. The system covers relational data modeling, database schema design, and arc

    JavaScriptdatabase-schemadbmldbx
    View on GitHub↗3,520
Compare all 30 related projects→

Frequently asked questions

What does samshadwell/trumpscript do?

TrumpScript is a Python-based domain specific language and compiler extension that wraps the Python runtime to enforce custom grammar and vocabulary rules. It transforms a specialized, case-insensitive vocabulary and natural speech patterns into executable Python instructions.

What are the main features of samshadwell/trumpscript?

The main features of samshadwell/trumpscript are: Domain Specific Languages, Vocabulary Mapping, Language Interpreters, Language Wrappers, Token Filtering, Compiler Extensions, Speech-Style Token Filtering, Syntax Extensions.

Which projects share features with samshadwell/trumpscript?

Projects with overlapping indexed features include: ohmjs/ohm — Ohm is a formal grammar parser generator and domain-specific language framework. It provides a system for defining… rhaiscript/rhai — Rhai is an embedded scripting engine and dynamically typed language designed for integration into Rust applications.… bitemyapp/learnhaskell — This project is a comprehensive functional programming curriculum and learning resource for Haskell. It provides… holistics/dbml — DBML is a domain-specific language and schema definition language used for documenting database architecture and… influxdata/influxdb — InfluxDB is a specialized time series database platform engineered for the high-speed ingestion, compression, and… taichi-dev/taichi — Taichi is a domain-specific programming language embedded in Python designed for high-performance numerical computing…