summary refs log tree commit diff stats
path: root/compiler/lowerings.nim
Commit message (Expand)AuthorAgeFilesLines
* deprecated unary '<'Andreas Rumpf2017-10-291-2/+2
* initial version of the new untested destructor passAndreas Rumpf2017-10-121-0/+11
* first implementation of the 'func' keywordAndreas Rumpf2017-09-231-1/+1
* closures have an object type field so that we can perform correct deepCopy() ...Andreas Rumpf2017-07-221-9/+11
* fixes tuple unpacking regressionAndreas Rumpf2017-04-261-1/+1
* make nimble compile againAndreas Rumpf2017-04-221-1/+1
* make sighashes work in more casesAndreas Rumpf2017-04-211-10/+54
* attempt to make sighashes produce smaller diffsAndreas Rumpf2017-04-191-1/+1
* re-enable object name generation for less dependence on IDsAraq2016-12-051-1/+2
* more fixesAraq2016-12-021-4/+5
* Merge branch 'devel' into sighashesAraq2016-12-011-0/+4
|\
| * closure types get names; refs #4332Araq2016-11-291-0/+4
* | removed tyArrayConstr completely from the compiler; introduced tyAlias instea...Araq2016-11-141-1/+1
|/
* big refactoring: step 1Araq2016-10-311-3/+3
* fixes #4673Andreas Rumpf2016-09-011-2/+2
* don't allow to pass a closure to spawnAndreas Rumpf2016-08-101-0/+2
* fixes #2758Andreas Rumpf2016-07-151-0/+1
* made indirectAccess slightly more efficientAndreas Rumpf2015-12-281-1/+2
* first implementation of the new lambda-lifting pass; barely anything worksAndreas Rumpf2015-12-261-1/+1
* tuple unpacking works in a non-var/let contextAraq2015-08-211-0/+26
* Merge branch 'more_concurrency' into develAraq2015-06-301-5/+8
|\
| * first implementation of pinnedSpawnAraq2015-05-281-5/+8
* | fixes #2297, fixes #2946Araq2015-06-181-0/+20
|/
* system.locals is now a plugin for educationAraq2015-04-241-0/+4
* first implementation of overloading of '='; missing: rewriting let/var sectionsAraq2015-04-061-2/+2
* fixes #2286Araq2015-03-121-20/+31
* fixes #325Araq2015-01-281-1/+0
* Happy new year!Guillaume Gelin2015-01-061-1/+1
* fixes a tuple lowering bugAraq2014-12-131-3/+4
* renamed CondVar to SemaphoreAraq2014-11-101-1/+1
* the codegen doesn't emit deepCopy for parallel statementsAraq2014-11-081-10/+17
* fixes exhaustion bug and missing GC_ref code generationAraq2014-11-071-0/+6
* merged things from develAraq2014-09-121-0/+1
|\
| * fixes #665Araq2014-09-111-0/+1
* | Nimrod renamed to NimAraq2014-08-281-1/+1
* | renamefestAraq2014-08-231-6/+6
|/
* progress on 'spawn'Araq2014-08-101-2/+2
* 'parallel' statement works againAraq2014-08-081-6/+4
* progress on deepCopyAraq2014-08-011-25/+41
* new jester compilesAraq2014-06-281-0/+10
* compiles againAraq2014-06-271-1/+1
* some progress for jester+asyncAraq2014-06-271-1/+16
* rewrote lambdalifting; fixes deeply nested closuresAraq2014-06-261-0/+16
* big rename: Promise -> FlowVarAraq2014-06-061-46/+46
* Promises are now refsAraq2014-06-051-22/+23
* fixed codegen for barriersAraq2014-06-021-2/+7
* bugfix: codegen for promisesAraq2014-06-021-4/+11
* fixed codegen for return valuesAraq2014-06-011-12/+15
* pi test compiles, but crashes randomlyAraq2014-06-011-4/+14
* tdisjoint_slice2 worksAraq2014-05-311-1/+1
632f0b0ad35bf086b5d81ac9d'>^
f0c55e6b ^
e82dc626 ^
f0c55e6b ^


e82dc626 ^



f0c55e6b ^





e82dc626 ^



f0c55e6b ^

816ffe20 ^
f0c55e6b ^

b085378e ^

f0c55e6b ^


b38d7fff ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98





                                              

                                                                             
                                                       



                     






                                                                    

                                    
                                                        
                                                           
 



                                                                                       
                 
                                                                                    
                      
 
                                                                       
 
                                                           
                                                     
                                                                                                            
                                               
                            
                              
                                                    


                                               
             
                                                                
                                                 
                                                                   
                                                            
        
                                                            
                     


                                                                
                                                                                                                           
                                           
                                 
 
                                 


                                   
                                                                                     
 
                 
                                                                  
                                                  


                                                                            



                                                       





                                                                                      



                                                                                   

                                                                    
                                                

                              

                                                                                                 


                                           

                     
" Vim syntax file
" Language:    mu
" Maintainer:  Kartik Agaram <mu@akkartik.com>
" URL:         http://github.com/akkartik/mu
" License:     public domain
"
" Copy this into your ftplugin directory, and add the following to your vimrc
" or to .vim/ftdetect/mu.vim:
"   autocmd BufReadPost,BufNewFile *.mu set filetype=mu

let s:save_cpo = &cpo
set cpo&vim

" todo: why does this periodically lose syntax, like on file reload?
"   $ vim x.mu
"   :e
"? if exists("b:syntax")
"?   finish
"? endif
"? let b:syntax = "mu"

setlocal iskeyword=@,48-57,?,!,_,$,-
setlocal formatoptions-=t  " Mu programs have long lines
setlocal formatoptions+=c  " but comments should still wrap

syntax match muComment /#.*$/  | highlight link muComment Comment
syntax match muSalientComment /##.*$/  | highlight link muSalientComment SalientComment
syntax match muComment /;.*$/  | highlight link muComment Comment
syntax match muSalientComment /;;.*$/  | highlight link muSalientComment SalientComment
set comments+=n:#
syntax match muCommentedCode "#? .*"  | highlight link muCommentedCode CommentedCode
let b:cmt_head = "#? "

syntax match muDelimiter "[{}]"  | highlight link muDelimiter Delimiter

" Mu strings are inside [ ... ] and can span multiple lines
" don't match '[' at end of line, that's usually code
syntax match muLiteral %^[^ a-zA-Z0-9(){}\[\]#$_*@&,=-][^ ,]*\|[ ,]\@<=[^ a-zA-Z0-9(){}\[\]#$_*@&,=-][^ ,]*%
syntax region muString start=+\[[^\]]+ end=+\]+
syntax match muString "\[\]"
highlight link muString String
" Mu syntax for representing the screen in scenarios
syntax region muScreen start=+ \.+ end=+\.$\|$+
highlight link muScreen muString

" Mu literals
syntax match muLiteral %[^ ]\+:literal/[^ ,]*\|[^ ]\+:literal\>%
syntax match muLiteral %\<[0-9-]\?[0-9]\+/[^ ,]*%
syntax match muLiteral % [0-9-]\?[0-9]\+[, ]\@=\| [0-9-]\?[0-9]\+$%
syntax match muLiteral "^\s\+[^ 0-9a-zA-Z{}$#\[\]][^ ]*\s*$"
" labels
syntax match muLiteral %[^ ]\+:label/[^ ,]*\|[^ ]\+:label\>%
" other literal types
syntax match muLiteral %[^ ]\+:type/[^ ,]*\|[^ ]\+:type\>%
syntax match muLiteral %[^ ]\+:offset/[^ ,]*\|[^ ]\+:offset\>%
syntax match muLiteral %[^ ]\+:variant/[^ ,]*\|[^ ]\+:variant\>%
syntax match muLiteral % true\(\/[^ ]*\)\?\| false\(\/[^ ]*\)\?%  " literals will never be the first word in an instruction
syntax match muLiteral % null\(\/[^ ]*\)\?%
highlight link muLiteral Constant

" sources of action at a distance
syntax match muAssign "<-"
syntax match muAssign "\<raw\>"
highlight link muAssign SpecialChar
syntax match muGlobal %[^ ]\+:global/\?[^ ,]*%  | highlight link muGlobal SpecialChar

" common keywords
" use regular expressions for common words that may come after '/'
syntax keyword muKeyword default-space local-scope
syntax keyword muKeyword next-input rewind-inputs load-inputs
syntax keyword muKeyword next-ingredient rewind-ingredients load-ingredients
syntax match muKeyword " input\>\| ingredient\>"
highlight link muKeyword Constant

syntax keyword muControl return return-if return-unless
syntax keyword muControl reply reply-if reply-unless
syntax keyword muControl output-if output-unless
syntax match muControl "^return\>\| return\>\|^reply\>\| reply\>\|^output\|^ output\>"
syntax keyword muControl jump-if jump-unless
syntax keyword muControl break-if break-unless
syntax keyword muControl loop-if loop-unless
syntax match muControl "^jump\>\| jump\>\|^break\>\| break\>\|^loop\>\| loop\>"
syntax keyword muControl start-running
syntax keyword muControl call-with-continuation-mark return-continuation-until-mark
highlight muControl ctermfg=3

syntax match muRecipe "->"
syntax match muRecipe "^recipe\>\|^def\>\|^before\>\|^after\>\| -> "
syntax keyword muRecipe recipe! def! function fn
highlight muRecipe ctermfg=208

syntax match muScenario "^scenario\>"  | highlight muScenario ctermfg=34
syntax keyword muPendingScenario pending-scenario  | highlight link muPendingScenario SpecialChar
syntax match muData "^type\>\|^container\>"
syntax keyword muData exclusive-container
highlight muData ctermfg=226

let &cpo = s:save_cpo