mirror of
				https://github.com/Reuh/candran.git
				synced 2025-10-27 17:59:30 +00:00 
			
		
		
		
	Fixed leaving debug code
And oh, I forgot in the last commit: I added a rockspec, which hopefully works. Soon in LuaRocks repos near you.
This commit is contained in:
		
							parent
							
								
									4af2b41a0d
								
							
						
					
					
						commit
						ce4a44cb13
					
				
					 1 changed files with 0 additions and 6 deletions
				
			
		
							
								
								
									
										6
									
								
								bin/can
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								bin/can
									
										
									
									
									
								
							|  | @ -22,12 +22,6 @@ else -- REPL | ||||||
| 			line = line:gsub("^=", "return tostring(") .. ")" | 			line = line:gsub("^=", "return tostring(") .. ")" | ||||||
| 		end | 		end | ||||||
| 
 | 
 | ||||||
| 		local p = dofile("lib/lua-parser/parser.lua") |  | ||||||
| 		local d = dofile("lib/lua-parser/pp.lua") |  | ||||||
| 		print(p.parse(line)) |  | ||||||
| 		print(d.dump(p.parse(line))) |  | ||||||
| 		print(require"compiler.lua53"(p.parse(line))) |  | ||||||
| 
 |  | ||||||
| 		local t = { pcall(candran.load, line, "stdin") } | 		local t = { pcall(candran.load, line, "stdin") } | ||||||
| 		if t[1] == false then | 		if t[1] == false then | ||||||
| 			print(t[2]) | 			print(t[2]) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue