-
Notifications
You must be signed in to change notification settings - Fork 0
Expand HypnoScript language definition with comprehensive standard library and enhanced hypnotic features #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Expanded keywords with more hypnosis-themed terms (trigger, anchor, oscillate, etc.) - Added complete set of hypnotic operator synonyms (youCannotResist, underMyControl, etc.) - Created comprehensive standard library with 7 modules: * Tranceify (core functions) * Hypno-Math (mathematical operations) * StringSpell (string manipulation) * MemoryPalace (data structures) * TimeWarp (time/date functions) * DeepMind (advanced control structures) * SensoryInput (I/O functions) - Enhanced language features: freeze, anchor, oscillate, pendulum, whisper, command, finale - Created 6 new example programs demonstrating all features - Updated README with library references Co-authored-by: JosunLP <20913954+JosunLP@users.noreply.github.com>
- Added finale block to program structure - Added new statement types: freeze, whisper, command, anchor, oscillate, pendulum, drift - Updated block statements to include deeperStill - Added all new hypnotic operator synonyms to grammar - Updated variable declarations to include implant and embed keywords Co-authored-by: JosunLP <20913954+JosunLP@users.noreply.github.com>
Created comprehensive demonstration program (21_hypno_pendulum_simulator.hyp) that showcases: - Session-based OOP with TranceSession class - All hypnotic operator synonyms in action - Complete standard library usage across all 7 modules - Interactive pendulum visualization - Memory structures (MemoryMap, arrays) - Advanced control flow and function composition - Freeze, anchor, and other new features - Finale block with cleanup - Rich formatting and user experience Co-authored-by: JosunLP <20913954+JosunLP@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR significantly expands the HypnoScript esoteric programming language by adding a comprehensive standard library and 20+ new hypnosis-themed keywords. The language maintains its TypeScript-like syntax while embracing hypnosis-related metaphors throughout.
Key changes:
- Adds 7 standard library modules with 100+ hypnotically-named functions (Tranceify, Hypno-Math, StringSpell, MemoryPalace, TimeWarp, DeepMind, SensoryInput)
- Introduces 8 complete hypnotic operator synonyms (
youAreFeelingVerySleepy,underMyControl,resistanceIsFutile, etc.) - Adds new language features:
freeze,anchor,oscillate,pendulum,finale,whisper,command - Expands DEFINITION.md from 590 to 1,145 lines with detailed standard library documentation
- Includes 7 new comprehensive example programs demonstrating the library features
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| DEFINITION.md | Adds complete section 6 for standard library with 7 modules; updates EBNF grammar with new statement types and operator synonyms |
| README.md | Adds overview of standard library modules and partial list of hypnotic operator synonyms |
| examples/15_standard_library_math.hyp | Demonstrates Hypno-Math module functions (trigonometry, rounding, random, etc.) |
| examples/16_standard_library_strings.hyp | Shows StringSpell module usage for string manipulation |
| examples/17_standard_library_datastructures.hyp | Demonstrates MemoryPalace arrays, stacks, queues, and maps |
| examples/18_advanced_hypnotic_features.hyp | Showcases all 8 hypnotic operators and new language features |
| examples/19_deepmind_control_structures.hyp | Illustrates DeepMind module's control flow and functional composition |
| examples/20_comprehensive_demo.hyp | Full-featured demo combining sessions, operators, and standard library |
| examples/21_hypno_pendulum_simulator.hyp | Interactive 237-line simulator using all major language features |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@copilot fix all the Code Review comments |
- Remove 'freeze' from DriftStatement grammar (conflicts with FreezeStatement) - Fix type mismatch in example 16: use vaultSize() for arrays instead of measureDepth() - Add missing TimeWarp functions: addSeconds, differenceInMinutes, differenceInSeconds - Mark unimplemented keywords as reserved: trigger, subconscious, deepenTrance, emergeFromTrance - Remove trigger example code (no grammar definition yet) - Complete operator synonyms list in README (add yourEyesAreGettingHeavy, goingDeeper) - Add pauseReality as alternative to DriftStatement for consistency Co-authored-by: JosunLP <20913954+JosunLP@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Replace deepenTrance() call with observe statement since deepenTrance is reserved for future implementation and not yet in the standard library Co-authored-by: JosunLP <20913954+JosunLP@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…b.com/HypnoScript/hyp-docs into copilot/improve-hyposcript-definition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
HypnoScript Language Definition Expansion and Improvement
✅ All Tasks Completed - Code Review Issues Fixed!
The HypnoScript language definition has been comprehensively expanded and improved while maintaining the humorous hypnosis theme throughout.
📊 Statistics:
🎯 Key Additions:
1. Enhanced Keywords (20+ new)
finale,deeperStill,implant,embed,whisper,command,suspend,freeze,anchor,oscillate,pendulumReserved for Future Implementation:
trigger,subconscious,deepenTrance,emergeFromTrance2. Complete Hypnotic Operator Synonyms (8 total)
==youAreFeelingVerySleepy!=youCannotResist>lookAtTheWatch<fallUnderMySpell>=yourEyesAreGettingHeavy<=goingDeeper&&underMyControl3. Comprehensive Standard Library (7 Modules)
6.1 Tranceify-Bibliothek - Core functions
6.2 Hypno-Math - Mathematical operations
6.3 StringSpell - String manipulation
6.4 MemoryPalace - Data structures
6.5 TimeWarp - Time and date
6.6 DeepMind - Advanced control
6.7 SensoryInput - Enhanced I/O
4. New Language Features
freeze- immutable variables (const)anchor- save/restore stateoscillate- toggle boolean valuespendulum- oscillating loops (back and forth)whisper- output without newlinecommand- emphasized/directive outputimplant/embed- alternative variable declarationsfinale- cleanup block executed at program endsuspend/pauseReality- pause execution5. New Example Programs (7 comprehensive demos)
6. Updated EBNF Grammar
🔧 Code Review Fixes:
freezefrom DriftStatement grammar (was conflicting with FreezeStatement)measureDepth(words)tovaultSize(words)addSeconds,differenceInMinutes,differenceInSecondstrigger,subconscious,deepenTrance,emergeFromTranceyourEyesAreGettingHeavy,goingDeeperpauseRealityas DriftStatement alternative for API consistencydeepenTrance()withobservestatement in example🎨 Theme Consistency
All additions maintain the humorous hypnosis theme with creative naming:
✨ Highlights:
The language now provides:
The HypnoScript documentation is now production-ready and showcases a complete, whimsical yet functional programming language! 🎭💫
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.