Skip to content

Commit

Permalink
Update of my thesis
Browse files Browse the repository at this point in the history
  • Loading branch information
szabototo89 committed May 15, 2014
1 parent 3a081c1 commit 03300ec
Show file tree
Hide file tree
Showing 56 changed files with 776 additions and 710 deletions.
Binary file modified docs/Diplomamunka_Szabo_Tamas.docx
Binary file not shown.
23 changes: 21 additions & 2 deletions grammar/example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ p.age = 45;
end;
*/

macro generic ("Point",
/*macro generic ("Point",
object Disposable
_object: TYPE;
isDisposed: boolean;
Expand Down Expand Up @@ -128,4 +128,23 @@ object Disposable
isDisposed: boolean;
end;

macro
macro */

var i : number = 0;
var n : number = 100;
var sum : number = 0;

while (i < n) do
sum = sum + 2 * i;
i = i + 1;
end;

implicit macro debugWhile(tree: { * > while }) do
var message_begin : string = "Beléptünk a ciklusba";
var message_end : string = "Kiléptünk a ciklusból";

prependTo(tree, "writeline(" + message_begin + ")");
appendTo(tree, "writeline(" + message_end + ")");

return tree;
end;
Loading

0 comments on commit 03300ec

Please sign in to comment.