Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"crates/ogar-emitter",
"crates/ogar-adapter",
"crates/ogar-proposal",
"crates/ogar-from-elixir",
]

[workspace.package]
Expand Down
26 changes: 26 additions & 0 deletions crates/ogar-from-elixir/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "ogar-from-elixir"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
rust-version.workspace = true
description = "SCAFFOLD: Elixir (Ecto / GenServer / gen_statem / Phoenix / Oban) frontend for OGAR-wide IR. Walks an Elixir source tree and fills Class + ActionDef per the OLD HIRO/Bardioc stack prefetch ledger (docs/ELIXIR-HIRO-PREFETCH.md §2). Extraction points are todo!() stubs documented with the exact Elixir construct to read; the target OGAR shape is already locked by passing tests."

[features]
default = []
serde = ["dep:serde", "ogar-vocab/serde"]

[dependencies]
ogar-vocab = { path = "../ogar-vocab" }
serde = { workspace = true, optional = true }

# TODO(frontend): add an Elixir parser when wiring real extraction. Options:
# - tree-sitter + tree-sitter-elixir (recommended): battle-tested grammar,
# incremental, handles syntax variations across Elixir 1.13–1.18+.
# - A thin hand-written lexer if the production stays narrow (e.g. only
# defmodule + use + def signatures).
# Neither is pulled in yet — the scaffold compiles with zero parser deps so
# the target OGAR shape can be locked first.

Loading