๐ŸŒ AIๆœ็ดข & ไปฃ็† ไธป้กต
Skip to content

ted-lang/ted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Ted

A timing-explicit language for hardware simulation.

Ted ("The Teddy Bear Language") makes time a first-class citizen with the @ operator for intuitive time travel semantics.

mod blink {
    out led: bit,

    loop {
        led = !led @ +500ms;  // toggle every 500ms
    }
}

Features

  • Time Travel - Read past values with x @ -1, schedule future with x = 1 @ +10ns
  • Event-Driven - React to signal changes with on rising(clk) / on change(sig)
  • Rust-Like - Familiar syntax for systems programmers
  • Deterministic - Same input always produces identical output

Quick Start

# Build
cargo build --workspace

# Check a source file
cargo run -p ted-cli -- check examples/blink.ted

# Run tests
cargo test --workspace

Documentation

Build and view the docs locally:

mdbook serve docs/

Or read online at ted-lang.org (coming soon).

Project Structure

crates/
โ”œโ”€โ”€ ted-ir          # Shared IR utilities (spans, IDs)
โ”œโ”€โ”€ ted-diagnostics # Error reporting
โ”œโ”€โ”€ ted-lexer       # Tokenization
โ”œโ”€โ”€ ted-parser      # AST and parsing
โ””โ”€โ”€ ted-cli         # Command-line interface
docs/               # Language documentation (mdbook)
examples/           # Example Ted programs

Contributing

See AGENTS.md for build instructions and coding standards.

License

Ted is licensed under GPL-3.0.

About

Ted Programming Language

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published