summary refs log tree commit diff stats
path: root/compiler
Commit message (Expand)AuthorAgeFilesLines
* fixes #569; C++ codegen works againAraq2013-08-311-12/+7
* fixes #578Araq2013-08-302-2/+2
* bugfix: conversions to float32 are allowed again but of lower priorityAraq2013-08-301-3/+3
* conversions to float32 are allowed again but of lower priorityAraq2013-08-30pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
parse/0: instruction: 1
parse/0:   ingredient: {name: "2", value: 0, type: 0, properties: [2: literal]}
parse/0:   product: {name: "1", value: 0, type: 2-1, properties: [1: address:integer]}
parse/0: instruction: 1
parse/0:   ingredient: {name: "34", value: 0, type: 0, properties: [34: literal]}
parse/0:   product: {name: "2", value: 0, type: 1, properties: [2: integer]}
parse/0: instruction: 1
parse/0:   ingredient: {name: "1", value: 0, type: 2-1, properties: [1: address:integer, deref: ]}
parse/0:   product: {name: "3", value: 0, type: 1, properties: [3: integer]}
after-brace/0: recipe main
after-brace/0: copy ...
after-brace/0: copy ...
after-brace/0: copy ...
run/0: instruction main/0
run/0: ingredient 0 is 2
mem/0: storing 2 in location 1
run/0: instruction main/1
run/0: ingredient 0 is 34
mem/0: storing 34 in location 2
run/0: instruction main/2
run/0: ingredient 0 is 1
mem/0: location 1 is 2
mem/0: location 2 is 34
mem/0: storing 34 in location 3
+0300'>2013-08-19
4-19/+25
| * Revert "Revert "further fixes for void stripping. fixes tvoid.""Zahary Karadjov2013-08-191-20/+25
| * Revert "Revert "fix threading tests""Zahary Karadjov2013-08-192-9/+17
| * Revert "Revert "fix tforwardgeneric""Zahary Karadjov2013-08-193-4/+5
| * Revert "Revert "static and default params for generics""Zahary Karadjov2013-08-194-61/+92
| * Revert "Revert "allow keyword params for the `[]` and `{}` operators""Zahary Karadjov2013-08-191-8/+12
| * remerge "allow void as field type"Zahary Karadjov2013-08-192-27/+43
| * Revert "Revert "bugfix: emulated thread vars used in combination with the mar...Zahary Karadjov2013-08-193-4/+11
| * remerge "Fixes #267"Zahary Karadjov2013-08-195-97/+184
| * Revert "Revert "test cases for the new features""Zahary Karadjov2013-08-191-4/+11
* | implemented opcTypeTraitAraq2013-08-223-17/+26
* | fixed and documented computedGoto pragmaAraq2013-08-224-32/+43
|/
* implemented computed goto supportAraq2013-08-136-12/+71
* new VM: preparations for evalMacroCallAraq2013-08-113-18/+98
* Merge branch 'master' of github.com:Araq/NimrodAraq2013-08-083-5/+17
|\
| * Take into account dirty buffers in suggest output; Fixes zah/nimrod.vim#14Zahary Karadjov2013-08-073-5/+17
* | new VM: register allocator bugfix; implemented more magicsAraq2013-08-084-63/+195
|/
* Merge branch 'master' of github.com:Araq/NimrodAraq2013-08-072-3/+8
|\
| * fixes #534Zahary Karadjov2013-08-072-3/+8
* | new VM: implemented constructors and jump optimizerAraq2013-08-075-21/+184
|/
* new VM: next stepsAraq2013-08-034-5/+14
* fixes #532Araq2013-08-011-0/+1
* 'nimrod pretty' usableAraq2013-07-315-63/+55
* 'nirmod pretty': almost workingAraq2013-07-312-4/+18
* 'nimrod pretty': next stepsAraq2013-07-302-1/+8
* lfFullExternalName for 'nimrod pretty'Araq2013-07-303-7/+14
* fixes token's column informationAraq2013-07-306-21/+19
* 'nimrod pretty': next steps, doesn't work yetAraq2013-07-292-7/+14
* 'nimrod pretty' command: next stepsAraq2013-07-292-43/+107
* new vm: further progressAraq2013-07-295-27/+350
* new vm: lots of fixesAraq2013-07-273-52/+145
* new vm: can execute simple programsAraq2013-07-262-9/+10
">) zeroMem(cast[pointer](addr(saddr)), sizeof(Sockaddr_in)) var message = "Message " & $(i * messagesToSend + k) await sendTo(sock, addr message[0], len(message), name, sizeof(Sockaddr_in).SockLen) var size = await recvFromInto(sock, cast[pointer](addr buffer[0]), 16384, cast[ptr SockAddr](addr saddr), addr slen) size = 0 var grammString = $buffer if grammString == message: saveSendingPort(sockport) inc(recvCount) inc(k) closeSocket(sock) inc(i) proc readMessages(server: AsyncFD) {.async.} = var buffer: array[16384, char] var slen = sizeof(Sockaddr_in).SockLen var saddr = Sockaddr_in() var maxResponses = (swarmSize * messagesToSend) var i = 0 while i < maxResponses: zeroMem(addr(buffer[0]), 16384) zeroMem(cast[pointer](addr(saddr)), sizeof(Sockaddr_in)) var size = await recvFromInto(server, cast[cstring](addr buffer[0]), 16384, cast[ptr SockAddr](addr(saddr)), addr(slen)) size = 0 var grammString = $buffer if grammString.startswith("Message ") and saddr.sin_addr.s_addr == 0x100007F: await sendTo(server, addr grammString[0], len(grammString), cast[ptr SockAddr](addr saddr), slen) inc(msgCount) saveReceivedPort(ntohs(saddr.sin_port).int) inc(i) proc createServer() {.async.} = var name = prepareAddress(0x7F000001, serverPort) var server = newAsyncNativeSocket(nativesockets.AF_INET, nativesockets.SOCK_DGRAM, Protocol.IPPROTO_UDP) if bindAddr(server.SocketHandle, cast[ptr SockAddr](name), sizeof(Sockaddr_in).Socklen) < 0'i32: raiseOSError(osLastError()) asyncCheck readMessages(server) var name = prepareAddress(0x7F000001, serverPort) # 127.0.0.1 asyncCheck createServer() asyncCheck launchSwarm(cast[ptr SockAddr](name)) while true: poll() if recvCount == swarmSize * messagesToSend: break assert msgCount == swarmSize * messagesToSend assert sendports == recvports echo msgCount