Skip to content

Commit

Permalink
Add new Hello World example project
Browse files Browse the repository at this point in the history
  • Loading branch information
44million committed Dec 2, 2023
1 parent 13c3647 commit c4dd984
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/Hello-World/q.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# This file was automatically created by the q --create flag.
# Changing these values may impact the way that Q runs the project
# DO NOT change the value names, as this will break q's project system.
name: "Hello-World"
type: "console"
version: "0.0.1"
# If you would like this to be automatically filled, use the `--sign (-s)` flag
author: "Anonymous"
homedir: "Hello-World/src/main.q"
10 changes: 10 additions & 0 deletions examples/Hello-World/src/main.q
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#import Hello-World.src.objs.Printer;

// This file was automatically created by the q --create flag.
class Main {

fn main(args):
print("Hello, World!");
end

}
5 changes: 5 additions & 0 deletions examples/Hello-World/src/objs/Printer.u
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#import <q.std>;

pub async fn print(str):
std::coutln(str);
end

0 comments on commit c4dd984

Please sign in to comment.