Skip to content

Commit

Permalink
Add chello.cxx, a C++ hello world program.
Browse files Browse the repository at this point in the history
  • Loading branch information
skaller committed Sep 10, 2022
1 parent b691e89 commit 9a38d9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions chello.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <iostream>
int main() {
::std::cout << "Hello from C++" << ::std::endl;
}
2 changes: 1 addition & 1 deletion src/packages/grammar.fdoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ syntax types {
t[satomic_pri] := "true" =># "`(typ_true,_sr)";
t[satomic_pri] := "false" =># "`(typ_false ,_sr)";

// this is the intersection combinator
// this is the type intersection combinator
t[sproduct_pri] := t[sproduct_pri] "/\" t[>sproduct_pri] =># '`(typ_intersect ,_sr ,_1 ,_3)';
t[ssum_pri] := t[ssum_pri] "\/" t[>ssum_pri] =># '`(typ_union ,_sr ,_1 ,_3)';

Expand Down

0 comments on commit 9a38d9f

Please sign in to comment.