Commit Graph

19 Commits

Author SHA1 Message Date
8b5191c8bf Phase 1+2: DRule regular chains + compileAction returns [Value]
- compileAction now returns Maybe [Value] (single-element lists for all
  existing verdicts); armToRuleValues updated accordingly
- programToValue emits one regular chain declaration per DRule (no
  hook/type/prio/policy fields), placed after policy chains
- CompileEnv promoted to a record (Env) carrying envDecls and a stub
  envCtMarks field (populated in Phase 4)
- All callers of compileAction threaded through new Env type
2026-05-04 21:50:42 -07:00
e584d9ac2d examples: update router.fwl to new grammar (portforward/masquerade, compact hook syntax) 2026-05-04 21:15:27 -07:00
6d96e2d159 crazy mega refactor 2026-05-04 03:16:40 -07:00
55c1d347e6 doc: update grammar spec and AGENTS.md for v2 design decisions
- policyDecl: replace verbose on{hook,table,priority} block with
  compact `hook <Hook> [priority <P>]` syntax; table is inferred
  from hook, priority defaults to canonical value for that hook
- Add portforwardDecl and masqueradeDecl top-level declarations
- Add implicit injection rules for stateful/loopback/ndp to
  compiler behaviour section (MVP; importable builtins deferred)
- Remove nat_prerouting / nat_postrouting from canonical policy
  example (replaced by portforward/masquerade declarations)
- Update reserved keywords: add portforward, masquerade, hook (was
  already reserved), priority (was already reserved); remove table
  as a reserved word since it no longer appears in policyDecl
- AGENTS.md: update architecture notes, reserved-words rule, and
  boundaries to reflect new declarations and compiler synthesis
2026-05-04 02:15:58 -07:00
9390647f7a add more ruleset examples 2026-05-04 01:47:10 -07:00
25f95996fb I don't even know rn 2026-05-04 01:44:11 -07:00
d79206440a stupid compilation 2026-05-04 00:41:52 -07:00
d136bd62f7 more compiler fixes 2026-05-04 00:14:47 -07:00
8a508ad7cc gemini fixes nft json compilation 2026-05-03 19:01:02 -07:00
d01be7bc23 gemini fix checker 2026-05-03 18:29:09 -07:00
2705f18e0f gemini fixes 2026-05-03 18:15:59 -07:00
a0632d5263 add AGENTS.md 2026-05-03 17:54:46 -07:00
2a44095791 v2 perplexed 2026-05-03 17:46:52 -07:00
30427521ca grammar doc updates 2026-05-03 17:45:40 -07:00
23ce29aece add agents rule file for docs 2026-05-03 14:47:18 -07:00
778cf13c40 add dist-newstyle to gitignore 2026-05-03 14:47:05 -07:00
87e0af97cc add proposed grammar doc 2026-05-03 01:06:37 -07:00
0549a54e34 add nft ruleset ref 2026-05-01 13:50:54 -07:00
36a7af8065 initial commit 2026-05-01 13:50:05 -07:00