talk-lang
v2.1.0
Published
Talk — A programming language for everyone: Traders, Quant, Coders, AI builders. Plain English, no brackets.
Maintainers
Readme
Talk — Plain English Programming v2.0.1
✨ Try it Online
→ Open the Talk Playground (open playground/index.html in your browser)
📦 Install the CLI
npm install -g talk-lang🚀 Quick Start
Create a file called bot.plain:
define blueprint bot
set name to "TalkBot"
define step greet
say "Hello from " + name
end step
end blueprint
set myBot to create bot
run step greet on myBotRun it:
talk bot.plain🌟 New in v2.0
- Object-Oriented Programming: define blueprints, properties, and steps.
- Advanced Data Structures: Stacks, Queues, Sets, and Dictionaries.
- Standard Library: Modular math, text, file-io, and json libraries.
- Quant Ready: Statistics (mean, median), Trigonometry, and List sorting.
- AI Ready: String interpolation, multi-line prompts, and built-in
fetch. - Error Handling:
try/catchblocks for robust code.
📖 Language Reference
Blueprints (OOP)
define blueprint circle with radius
define step get_area
give back 3.14159 * radius ^ 2
end step
end blueprint
set c to create circle with 10
set area to run step get_area on c
say "Area: " + areaData Structures
create stack history
push "home" onto history
push "profile" onto history
say peek at history -- profile
set last to pop from history -- profile
create set unique_ids
add 101 to unique_ids
add 101 to unique_ids -- only adds onceQuant Finance
create list prices
add 150.5 to prices
add 152.3 to prices
say average of prices
set sorted to sort list prices ascending🧑💻 Author
Made with ❤️ by Parth Pradip Bhosale
📄 License
MIT — free to use, share, and modify.
