Skip to content

Commit

Permalink
Simplified .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
DeLuxe-1337 committed Mar 19, 2024
1 parent d911286 commit ddc9ac5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ tcc/
*.user
test.c
ChronCompiler/Properties/PublishProfiles/FolderProfile.pubxml.user
ChronBootstrap/out.chron_test.c
ChronBootstrap/main.chron.c
ChronBootstrap/*.c
8 changes: 5 additions & 3 deletions ChronBootstrap/main.chron
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ GenerateBasicFunction :: (name) {
block = IR.CreateBlock()
IR.Block.Append(block, IR.CreateInvoke("printf", <IR.CreateString("Hello, world")>))

func = IR.CreateFunction(name, block, nil)

return Clone(func)
return IR.CreateFunction(name, block, nil)
}

Main :: {
PrintLn("Writing basic function")

IR.Write(GenerateBasicFunction("main"))

PrintLn("Writing to file")

IR.Writer.WriteToFile("out.chron_test.c")

PrintLn("End of program")
Expand Down

0 comments on commit ddc9ac5

Please sign in to comment.