1. syntax check

Is there a way to just run a syntax check on a euphoria source file as an alternative to running the program with ex?

new topic     » topic index » view message » categorize

2. Re: syntax check

canadiancoder said...

Is there a way to just run a syntax check on a euphoria source file as an alternative to running the program with ex?

in eu4 there is

exwc -TEST your.ex 
exwc eu4\source\std.ex your.ex 
new topic     » goto parent     » topic index » view message » categorize

3. Re: syntax check

You could put all your top-level code into a procedure called main(), then simply not call it.

procedure main() 
 
  -- do top-level stuff here 
 
end procedure 
 
-- call main when we're ready, but 
-- leave it commented out for now: 
--main() 

-Greg

new topic     » goto parent     » topic index » view message » categorize

4. Re: syntax check

canadiancoder said...

Is there a way to just run a syntax check on a euphoria source file as an alternative to running the program with ex?

Finally back on the forum!

I built a syntax test only binary from the Euphoria 3.0.2 source some time ago. You just have to comment out a step in execute.e I believe it was in procedure Execute [Eucode] do_exec() [/Eucode] I then bound it into a file called syncheck.exe which I added as a shortcut to my "SEND TO>" right click menu.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu