<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sinter/parse.y, branch mag/wip</title>
<subtitle>Intermediate functional language that compiles to LLVMIR</subtitle>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/'/>
<entry>
<title>Rename compiler to sinc</title>
<updated>2020-01-11T20:12:20+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2020-01-11T20:12:20+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=c52a6bedb06d83adca8e5a89ec23d77967ae4cce'/>
<id>c52a6bedb06d83adca8e5a89ec23d77967ae4cce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>checkpoint</title>
<updated>2019-12-23T01:32:39+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-12-23T01:32:39+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=7bc67b95161a34f8eca635d4000d9602508a9243'/>
<id>7bc67b95161a34f8eca635d4000d9602508a9243</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable -Weverything</title>
<updated>2019-10-30T14:38:00+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-10-30T14:38:00+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=935600fb9612ef569f1f68f60b0b7cdd57ce7af6'/>
<id>935600fb9612ef569f1f68f60b0b7cdd57ce7af6</id>
<content type='text'>
Clang has a -Weverything option, that enables all compile-time warnings
and elevates them all to errors. This option is now passed to the
compiler, and all warnings/errors the code produced have been addressed.

Using -Weverything locks the project into using clang as its compiler:
this should not be a problem since clang is probably being used to
compile the LLVM output of the project anyway. If support for other
compilers is required, it should be simple enough to replace
-Weverything with an equivalent collection of portable flags.

Explicit Makefile rules for compiling the C files produced by flex/bison
are now included in the project since these C files absolutely do not
pass -Weverything checks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clang has a -Weverything option, that enables all compile-time warnings
and elevates them all to errors. This option is now passed to the
compiler, and all warnings/errors the code produced have been addressed.

Using -Weverything locks the project into using clang as its compiler:
this should not be a problem since clang is probably being used to
compile the LLVM output of the project anyway. If support for other
compilers is required, it should be simple enough to replace
-Weverything with an equivalent collection of portable flags.

Explicit Makefile rules for compiling the C files produced by flex/bison
are now included in the project since these C files absolutely do not
pass -Weverything checks.
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement function definitions</title>
<updated>2019-10-09T13:26:04+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-10-09T13:26:04+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=6d4925e61687c2221ab20a4dd2371d1a3e7acb2d'/>
<id>6d4925e61687c2221ab20a4dd2371d1a3e7acb2d</id>
<content type='text'>
Functions can now be defined using the "def" construct. A "main"
function has to be defined for LLVM to compile the program.

Recursive function definitions are not supported, since all values are
eagerly evaluated, causing infinite recursion of the non-base case.
Recursive definitions can be supported either by including an if
primitive that does not evaluate both sides, or by implementing support
for lazy evalution. I'm interested in exploring the latter, but will
probably implement the former for now.

Similar to the if primitive above, the def primitive is currently an
implementation which could potentially be altered into a function that
manipulates meta-variables at compile time. This would require
compile-time evaluation of functions, which would be really cool, but is
also superfluous to the current goal. I might return to this idea after
I'm happy with the base implementation of the language.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Functions can now be defined using the "def" construct. A "main"
function has to be defined for LLVM to compile the program.

Recursive function definitions are not supported, since all values are
eagerly evaluated, causing infinite recursion of the non-base case.
Recursive definitions can be supported either by including an if
primitive that does not evaluate both sides, or by implementing support
for lazy evalution. I'm interested in exploring the latter, but will
probably implement the former for now.

Similar to the if primitive above, the def primitive is currently an
implementation which could potentially be altered into a function that
manipulates meta-variables at compile time. This would require
compile-time evaluation of functions, which would be really cool, but is
also superfluous to the current goal. I might return to this idea after
I'm happy with the base implementation of the language.
</pre>
</div>
</content>
</entry>
<entry>
<title>Support + and * operations</title>
<updated>2019-10-03T01:42:28+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-10-03T01:42:28+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=64d093247985f759669b7726542291382c1e3fc5'/>
<id>64d093247985f759669b7726542291382c1e3fc5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial commit</title>
<updated>2019-09-30T00:56:15+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2019-09-30T00:56:15+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/5th-year-coursework/sinter/commit/?id=fbe39f58fc0d757f8ffe54c6dc96bbc690862ded'/>
<id>fbe39f58fc0d757f8ffe54c6dc96bbc690862ded</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
