unycorn / lolcode-dot-net

Automatically exported from code.google.com/p/lolcode-dot-net
0 stars 0 forks source link

Drag and drop .lol file compile support #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Drag and Drop a .lol onto lolc.exe to be compiled
OR
2. lolc.exe "c:\nondato\source\lolproject\program.lol"

What is the expected output? What do you see instead?
An .exe of the .lol file to be created. It throws an exception about no
paths being allowed in the output assembly.

What version of the product are you using? On what operating system?
SVN revision 35, Vista SP1

Please provide any additional information below.
Line 36 in program.cs in the lolc project could be changed to the following
to fix
string outfileFile = String.IsNullOrEmpty(arguments.output) ?
Path.ChangeExtension(Path.GetFileName(arguments.sources[0], ".exe")) :
arguments.output;

Ideally, the input file's path is saved and used for moving the compiled
exe when finished. 

This brings the compiler one step closer to being usable as a custom tool
in VS for compiling LOLcode projects

Original issue reported on code.google.com by tagna...@gmail.com on 14 Jul 2008 at 11:54

GoogleCodeExporter commented 8 years ago
typo in my replacement code. Should be this 
string outfileFile = String.IsNullOrEmpty(arguments.output) ?
Path.ChangeExtension(Path.GetFileName(arguments.sources[0]), ".exe") : 
arguments.output;

Original comment by tagna...@gmail.com on 15 Jul 2008 at 1:43