WC3 Modding Information Center

Warcraft (WC3) Modding => Warcraft III Resources => WC3 Editing Tools => Topic started by: LeP on December 05, 2014, 02:27:07 PM

Rating

Average Score - 5 / 5

« Created: July 06, 2018, 04:16:24 AM by yxq1122 »

Average Score - 5 / 5

« Created: June 26, 2018, 10:06:29 PM by moyack »
Title: PJass updates
Post by: LeP on December 05, 2014, 02:27:07 PM
Version: ea093b2
Keywords: pjass, jass, compiler
Operating System (OS):
  • Windows XP
  • Windows Vista
  • Windows 7
  • Windows 8
  • Windows 10
Tool Category: World Editor (WE) Add on or plugin
Rating: 5
Warcraft III Tool resource
-->Latest version<--

Hey,
just wanted to release my pjass with some litte updates.
pjass now handles rawcodes (more?) correct. I think most of the time it makes no difference as jasshelper doesn't accept those rawcodes.
When pjass encounters some name it hasn't seen it also throws some suggestions in the error message.
Increased max recursion limit to 100000. This should help with realy big scripts.

Example:
test.j
Code: jass
  1. type bla extends integner
  2.  
  3. globals
  4.     integer a = 'a\\bd'
  5.     integer b = '\\'
  6.     integer c = 'avc'
  7. endglobals
  8.  
  9. function foo takes nothing returns nothing
  10. endfunction
  11.  
  12. function go takes nothing returns nothing
  13. endfunction
  14.  
  15. function bar takes nothing returns nothing
  16. endfunction
  17.  
  18. function xxx takes nothing returns nothing
  19.     local real abc
  20.     set acb = 1
  21.     call fo()
  22. endfunction

Code: [Select]
$ pjass test.j
test.j:1: Undefined type integner. Maybe you meant integer
test.j:4: Escaped chars are only allowed if they are the only char in the rawcode.
test.j:4: Escaped chars are only allowed if they are the only char in the rawcode.
test.j:6: Rawcodes must be 1 or 4 characters.
test.j:20: Undeclared variable acb. Maybe you meant abc
test.j:21: Undeclared function fo. Maybe you meant go, foo
test.j failed with 6 errors
Parse failed: 6 errors total

The code might be a bit ugly somtimes but i just wanted it working :)

-->Latest version<--
Title: Re: PJass updates
Post by: LeP on July 24, 2018, 06:38:13 PM
New
Fixed some really silly bug thanks to @Wareditor. Also enabled some optimisation in cross compiling (my gcc for cross-compiling is rather old... well what can you do)
Also if more people reach that stack limit error pls say so and i will increase it again.
Title: Re: PJass updates
Post by: LeP on August 09, 2018, 07:59:31 PM
New
Added modulo operator and merged the above release aswell.