Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Dec 22, 2023
1 parent 938ad81 commit a34d212
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/exp.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

import context

type
Dependencies* = ref object
deps*: seq[(PackageName, VersionInterval)]

ProjectVersion* = object # Represents a specific version of a project.
version*: Version
dependencies*: Dependencies

# Represents a project, which consists of multiple versions.
Project* = object
pkg*: Package
versions*: seq[ProjectVersion]

Graph* = object
projects*: seq[Project]

proc expand(g: var Graph) =
## Expand the graph by adding all dependencies.






0 comments on commit a34d212

Please sign in to comment.