init
This commit is contained in:
		
						commit
						8d306ab690
					
				
					 14 changed files with 703 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								examples/config.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								examples/config.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| return { | ||||
|   entry = { | ||||
|     'main.lua', | ||||
|   }, | ||||
|   output = { | ||||
|     name = '$hash.lua' | ||||
|   }, | ||||
|   plug = { | ||||
|     --require 'plug.switch' {}, | ||||
|     require 'plug.arrow' {}, | ||||
|     require 'plug.assigns' {}, | ||||
|     require 'plug.num' {}, | ||||
|   }, | ||||
| } | ||||
							
								
								
									
										29
									
								
								examples/main.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								examples/main.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| 
 | ||||
| local main = () ==> | ||||
| 
 | ||||
|   emp = () => | ||||
| 
 | ||||
|   add = (a, b) => a + b | ||||
| 
 | ||||
|   local a, b = 5, 8 | ||||
|   add(a, b) | ||||
| 
 | ||||
|   a += 0x10_10 | ||||
| 
 | ||||
| --[[ | ||||
|   switch(a) { | ||||
|     5, 8 => error 'cant', | ||||
|     300 => error 'trahtarista' | ||||
|       (() =>)() | ||||
|       , | ||||
|     _ => print 'can', | ||||
|   } | ||||
| --]] | ||||
| 
 | ||||
|   print 'hello world' | ||||
| <== | ||||
| main() | ||||
| 
 | ||||
| { | ||||
|   tst = true | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue