Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A agnostic-lizard
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Michael Raskin
  • agnostic-lizard
  • Issues
  • #2

Closed
Open
Created Jan 30, 2022 by Michał Herda@mherda🤔

Passing information between nodes

I'd like to use agnostic-lizard to write a portable implementation of fbind which rewrites the source forms. My idea can be summed up like that:

  • Walk the code and rewrite it
    • FBIND: add names to the list of lexically FBIND-bound functions and bind lexivars to the function objects
    • LABELS/FLET: remove names from the list of lexically FBIND-bound functions
    • FUNCTION: is the name FBIND-bound?
      • yes: expand into a lexivar
      • no: keep as-is
    • function calls: is the name FBIND-bound?
      • yes: expand into a FUNCALL of a lexivar
      • no: keep as-is

This means that, as I walk a Lisp form, I need to maintain a list of lexically FBIND-bound functions, "rebind" it in some nodes of the tree, and access that list later on. How can I do that using agnostic-lizard?

Edited Jan 30, 2022 by Michał Herda
Assignee
Assign to
Time tracking