Skip to content

Klaus-Chang/02247-Compiler-Construction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyggec - the Didactic Compiler for Hygge

This is the source code hyggec, the didactic compiler for the Hygge programming language.

Hygge and hyggec have been designed and developed as learning tools for the course 02247 Compiler Construction at DTU Compute - Technical University of Denmark.

hyggec is released under the terms of the MIT license.

Software Requirements

NOTE: you will need to have both the dotnet and java programs in your executable PATH (their installation scripts should take care of it).

Quick Start

After installing the required software above, open a terminal in the root directory of the hyggec source tree, and try:

./hyggec test

This command automatically builds hyggec and runs its test suite. If you don't see any error, then hyggec was built correctly and passed all its tests. You should now be able to use and modify it.

To see the usage options, you can execute:

./hyggec help

You will see a list of various commands. To get usage options for a specific command (for example, compile):

./hyggec compile --help

Here's something you can try:

./hyggec interpret --typecheck --verbose examples/hygge0-spec-example.hyg

Building hyggec from the Command Line

Every time you invoke the script ./hyggec, the compiler will be rebuilt if its source code was modified since the last execution.

You can also (re)build the hyggec executable by running:

dotnet build

To clean up the results of a build, you can run:

dotnet clean

Recommended Visual Studio Code Extensions

These Visual Studio Code extensions are very helpful when working on hyggec:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages