Skip to main content

My simple and easy programming language

Project description

#----Autor-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------# The developer of this language (library, because it's still in this form), the developer is DevCooder, and I also have a github - https://github.com/ZeroMurder, where there are some interesting projects for those who are interested. I created this language for learning. I want to perfect this language and add not only built-in functions like print and input, but also some cool functions for speed and some functions for developers who want to write long code but with understanding and logic functions. #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------# LpibyDevCooder LpibyDevCooder — простой интерпретируемый язык программирования на Python, предназначенный для обучения и экспериментов с языковыми технологиями. Проект реализует базовый лексический и синтаксический анализатор (парсер), интерпретатор и небольшой набор встроенных функций. #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------# Основные возможности Арифметические операции: сложение и вычитание чисел. #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------# Структура и компоненты Лексер (токенизатор): разбивает исходный код на лексемы (токены). #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------# Парсер: строит абстрактное синтаксическое дерево (AST) из токенов. #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------# Интерпретатор: рекурсивно вычисляет AST, выполняет операции и вызывает встроенные функции. "pr(expr)","Выводит результат выраженияexprна экран (аналогprintв Python)." "ind()","Ввод данных с клавиатуры (аналогinputв Python)." "st(number)","Демонстрационная функция подключения CSS стиля с идентификаторомnumber. Просто выводит сообщение." "sr(expr)","Преобразует выражениеexprв строку (аналогstr()в Python)." "def function_name()","Определение новой функции без параметров с именемfunction_name. Тело функции — одно выражение." ", !(знак восклицания) —TRY_FUNC(expr1, expr2)","Функция с двумя аргументами, которая пытается выполнитьexpr1. Если при выполнении возникает ошибка, выполняетexpr2." "(числа, строки, арифметические операторы +, -, *, /)","Поддержка базовых чисел, строк и арифметических операций." #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------# Пример кода и использования: python pr(3 + 5 - 2) # Вывод: 6 user_input = ind() # Ввод с клавиатуры pr(user_input) # Вывод введенного значения st(1) # Выводит сообщение о подключении стиля pr(sr(456 + 8)) # Выводит '464' как строку Цели проекта lpi - служит учебной платформой для понимания фундаментальных концепций языков программирования, их парсинга, интерпретации и расширения функционала. Проект предназначен для постепенного развития: добавления переменных, управления потоками, поддержки графических интерфейсов и др. #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#

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

lpibydevcoder-0.0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

lpibydevcoder-0.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file lpibydevcoder-0.0.3.tar.gz.

File metadata

  • Download URL: lpibydevcoder-0.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for lpibydevcoder-0.0.3.tar.gz
Algorithm Hash digest
SHA256 033223100f02f7df186e688253ea3cfd9d67d39e2cddc96ae3faa429dc17d440
MD5 85cb5579f76771e06e3d887052beac76
BLAKE2b-256 c73f009f969fc3f73c9815cc822934f9435be913f8bbad728147e2b282c9f802

See more details on using hashes here.

File details

Details for the file lpibydevcoder-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: lpibydevcoder-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for lpibydevcoder-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9cd2b484451607afb326cea90508721c18c1cd77abe7eaeb03080376e4737147
MD5 73cff2c0d98fb1b3fbbf1a15ee6b06d9
BLAKE2b-256 08a22ac4213609d2e28d6e21c51964ce7c1c297a70d9a2ec8883bc058b0f51f0

See more details on using hashes here.

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