Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update text #21

Merged
merged 2 commits into from
Jun 21, 2024
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
3 changes: 3 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Copyright (C) 2024 Ethan Uppal. All rights reserved.

I do not intend this code to be useful beyond serving a pedagogical purpose for myself and as a record of my work.
If not otherwise stated in full terms, this license applies to all source files under my copyright in this repository.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
![CI](https://github.com/ethanuppal/pulsar/actions/workflows/ci.yaml/badge.svg)
[![CodeFactor](https://www.codefactor.io/repository/github/ethanuppal/pulsar/badge)](https://www.codefactor.io/repository/github/ethanuppal/pulsar)

Pulsar is a hobby PL, which, for fun, I am implementing both software and hardware backends.
Currently, I am working toward implementing such a hardware backend via the [calyx] infrastructure.
Pulsar is a programming language for building hardware accelerators.
In what exactly? I'm not sure yet.

The WIP syntax is a very blatant clone of Swift's with some modifications.
As of right now, I'm using Swift's syntax for that nice syntax highlighting:
```swift
func increment(x: Int) -> Int {
return x + 1
Expand Down
9 changes: 4 additions & 5 deletions crates/calyx-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,13 +654,12 @@ impl CalyxBuilder {
pub fn new(
prelude: Option<PathBuf>, lib_path: PathBuf,
entrypoint: Option<String>, cell_name_prefix: String
) -> Self {
) -> calyx_utils::CalyxResult<Self> {
assert!(!cell_name_prefix.is_empty());

// A workspace is created for the sole purpose of obtaining standard
// library definitions -- it is immediately turned into a context.
let ws =
calyx_frontend::Workspace::construct(&prelude, &lib_path).unwrap();
let ws = calyx_frontend::Workspace::construct(&prelude, &lib_path)?;
let ctx = calyx_ir::Context {
components: vec![],
lib: ws.lib,
Expand All @@ -670,11 +669,11 @@ impl CalyxBuilder {
metadata: None
};

Self {
Ok(Self {
ctx,
sigs: HashMap::new(),
cell_name_prefix
}
})
}

/// <div class="warning">This builder cannot be used.</div>
Expand Down
1 change: 1 addition & 0 deletions pulsar-backend/src/calyx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ impl PulsarBackend for CalyxBackend {
None,
"_".into()
)
.expect("Invalid library path")
}
}

Expand Down
24 changes: 0 additions & 24 deletions pulsar-frontend/src/syntax.ebnf

This file was deleted.