Skip to content

Conversation

@noahgift
Copy link

Summary

Adds comprehensive syntax highlighting support for the Ruchy programming language.

Language Features

  • Actor model concurrency - actor keyword and messaging operators
  • Pipeline operators - >> for data transformation pipelines
  • Rust-like syntax - Modern systems language with memory safety
  • Functional features - Pattern matching, immutable by default

Implementation Details

  • Complete lexer (lib/rouge/lexers/ruchy.rb) - Full token recognition for all Ruchy constructs
  • Comprehensive tests (spec/lexers/ruchy_spec.rb) - Unit tests covering syntax patterns
  • Visual sample (spec/visual/samples/ruchy_demo.rhy) - Demonstration of language features

File Extensions

  • .rhy (primary)
  • .ruchy (alternative)

Key Syntax Patterns

// Actor definitions
actor Counter {
    let mut count: i32 = 0;
    
    receive Increment(n) -> {
        count += n;
    }
}

// Pipeline operations
data 
    >> validate 
    >> transform 
    >> persist
    
// Actor messaging
counter <- Increment(5)
result <- counter <? GetCount

Testing

All tests pass and the lexer correctly identifies Ruchy files by content and extension.

🤖 Generated with Claude Code

Adds comprehensive syntax highlighting for the Ruchy programming language,
a modern systems language featuring:
- Actor model concurrency
- Pipeline operators
- Rust-like syntax with functional features
- Memory safety and performance

Files added:
- lib/rouge/lexers/ruchy.rb - Complete lexer implementation
- spec/lexers/ruchy_spec.rb - Unit tests for lexer
- spec/visual/samples/ruchy_demo.rhy - Visual test sample

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant