awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
samshadwell avatar

samshadwell/TrumpScriptArchived

0
View on GitHub↗
7,587 星标·392 分支·Python·MIT·3 次浏览

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.

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.

Star 历史

samshadwell/trumpscript 的 Star 历史图表samshadwell/trumpscript 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

TrumpScript 的开源替代方案

相似的开源项目,按与 TrumpScript 的功能重合度排序。
  • ohmjs/ohmohmjs 的头像

    ohmjs/ohm

    5,471在 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
    在 GitHub 上查看↗5,471
  • rhaiscript/rhairhaiscript 的头像

    rhaiscript/rhai

    5,453在 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
    在 GitHub 上查看↗5,453
  • bitemyapp/learnhaskellbitemyapp 的头像

    bitemyapp/learnhaskell

    8,026在 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
    在 GitHub 上查看↗8,026
  • holistics/dbmlholistics 的头像

    holistics/dbml

    3,520在 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
    在 GitHub 上查看↗3,520
查看 TrumpScript 的所有 30 个替代方案→

常见问题解答

samshadwell/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.

samshadwell/trumpscript 的主要功能有哪些?

samshadwell/trumpscript 的主要功能包括:Domain Specific Languages, Vocabulary Mapping, Language Interpreters, Language Wrappers, Token Filtering, Compiler Extensions, Speech-Style Token Filtering, Syntax Extensions。

samshadwell/trumpscript 有哪些开源替代品?

samshadwell/trumpscript 的开源替代品包括: 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…