vrtc / pjass (public) (License: BSD) (since 2023-08-03) (hash sha1)
pjass is a free Jass scripting language parser. This repository is a fork of lep/pjass. The goal is to add Debian packaging. As of the time of this writing, it works for current stable, that is Debian 12 (bookworm).
List of commits:
Subject Hash Author Date (UTC)
Fixed some errors on Debian and removed some warnings. 28b8a48ff580cb1c06343b4f51194b9a18f0901c cilibrar 2004-08-15 07:15:22
Works under Linux, removed debug messages. 60be798cd6b6e8ad3432feecf3418c7d2662807f cilibrar 2004-08-15 07:10:44
*** empty log message *** e8d4118415a91b81e924c78fc26c9c48eddefd5f cilibrar 2004-08-15 07:07:53
Fixed -mno-cygwin option to work under just cygwin host_os 1190fdc75012f9b55c597cc46f9b1c814ca5b8c7 cilibrar 2004-08-15 07:06:56
More configuration guessing scripts. d738f380f0324e5ca4ecdde5b79af99e1a783f24 cilibrar 2004-08-15 07:03:34
More adjustments. 0e72fd7fb1af1faaea69beb731b3d675583c2d2f cilibrar 2004-08-15 07:02:02
Fixed options to compile under RedHat. 12c7b48712fcdd84a2b36ecd6f2d4979a19dc7be cilibrar 2004-08-15 06:38:26
Some boilerplate files. 3b14c4d0fd37d9b2d4ddd443a6f74a67793eb338 cilibrar 2004-08-15 06:19:21
Converted to autoconf, automake. 06b0d83604e6316c9e086af0ce08ac3f2d4e7b8a cilibrar 2004-08-15 06:13:25
*** empty log message *** 3a61644cba31faab849c60b0aaeba6e5ae6e0fbb cilibrar 2003-06-22 18:00:46
Fix error message for implicit redirection parameter. 547f94e18885bdb7d0a61908691268987ef03a0f cilibrar 2003-06-09 08:51:53
*** empty log message *** cef95bf6a7aec8b05ceaa325e0b7cafe0e0fb616 cilibrar 2003-06-08 22:13:41
*** empty log message *** c6a48acc98a4580e1dc9560b26b3adf579569319 cilibrar 2003-06-08 17:08:25
*** empty log message *** a9084c6a8897b38d209f2f3839ed9fd8c17a5eb4 cilibrar 2003-06-08 15:59:21
*** empty log message *** 594b07b664e8da134328e2099107f836c4783d22 cilibrar 2003-06-08 14:19:39
A makefile for cygwin. 7114936321546139b5512821e3d868b21c0b89f1 cilibrar 2003-06-08 10:38:31
Added \n, \r, \t in double-quotes. Added debug keyword handling. Now it parses everything in the Scripts directory except demo.ai, which looks like it could never work anyway. a76d8de5a85768c58297ad05dcc3bd361e3c8d69 cilibrar 2003-06-08 10:12:17
Make downcasting bug a bit more restrictive to minimize future problems. 3bef4ca2d62e1de3fe70986de71a3da2b68ff25f cilibrar 2003-06-08 09:52:03
Fixed segfault involving undeclared variables by assuming they are integer. 76b34be901540214c21b8af681bcf42620ca0e21 cilibrar 2003-06-08 09:49:56
Fixed bug with string literal addition. Added unfortunate special case to canconvert to allow downcasts from base to derived. Waiting on Blizzard to fix this one. (such a cast appears in one place in Blizzard.j) 1384b0771dd6db4c6cb548fef3331f518509c68e cilibrar 2003-06-08 09:40:28
Commit 28b8a48ff580cb1c06343b4f51194b9a18f0901c - Fixed some errors on Debian and removed some warnings.
Author: cilibrar
Author date (UTC): 2004-08-15 07:15
Committer name: cilibrar
Committer date (UTC): 2004-08-15 07:15
Parent(s): 60be798cd6b6e8ad3432feecf3418c7d2662807f
Signer:
Signing key:
Signing status: N
Tree: a212cd3092768b32d627a3efb551f6f2d35ecc0f
File Lines added Lines deleted
src/grammar.y 2 1
src/misc.c 5 4
File src/grammar.y changed (mode: 100644) (index 5ffd828..edde71a)
... ... funcend: ENDFUNCTION { clear(&params); clear(&locals); curtab = &globals; }
266 266 ; ;
267 267
268 268 funcbegin: FUNCTION rid TAKES optparam_list RETURNS opttype { funcbegin: FUNCTION rid TAKES optparam_list RETURNS opttype {
269 struct typeandname *tan;
269 270 curtab = &locals; curtab = &locals;
270 271 $$.fd = newfuncdecl(); $$.fd = newfuncdecl();
271 272 $$.fd->name = strdup($2.str); $$.fd->name = strdup($2.str);
272 273 $$.fd->p = $4.pl; $$.fd->p = $4.pl;
273 274 $$.fd->ret = $6.ty; $$.fd->ret = $6.ty;
274 275 put(&functions, $$.fd->name, $$.fd); put(&functions, $$.fd->name, $$.fd);
275 struct typeandname *tan = $4.pl->head;
276 tan = $4.pl->head;
276 277 for (;tan; tan=tan->next) for (;tan; tan=tan->next)
277 278 put(&params, strdup(tan->name), newtypeandname(tan->ty, tan->name)); put(&params, strdup(tan->name), newtypeandname(tan->ty, tan->name));
278 279 retval = $$.fd->ret; retval = $$.fd->ret;
File src/misc.c changed (mode: 100644) (index 68864c5..450dca9)
... ... void checkeqtest(const struct typenode *a, const struct typenode *b)
317 317 void dofile(FILE *fp, const char *name) void dofile(FILE *fp, const char *name)
318 318 { {
319 319 void *cur; void *cur;
320 int olderrs;
320 321 lineno = 1; lineno = 1;
321 int olderrs = haderrors;
322 cur = yy_create_buffer(fp, BUFSIZE);
322 olderrs = haderrors;
323 cur = (void *) yy_create_buffer(fp, BUFSIZE);
323 324 yy_switch_to_buffer(cur); yy_switch_to_buffer(cur);
324 curfile = name;
325 curfile = (char *) name;
325 326 while (yyparse()) while (yyparse())
326 327 ; ;
327 328 if (olderrs == haderrors) if (olderrs == haderrors)
 
... ... void printversion()
338 339
339 340 void doparse(int argc, char **argv) void doparse(int argc, char **argv)
340 341 { {
342 FILE *fp;
341 343 int i; int i;
342 344 for (i = 1; i < argc; ++i) { for (i = 1; i < argc; ++i) {
343 345 if (argv[i][0] == '-' && argv[i][1] == 0) { if (argv[i][0] == '-' && argv[i][1] == 0) {
 
... ... printf(
367 369 exit(0); exit(0);
368 370 continue; continue;
369 371 } }
370 FILE *fp;
371 372 fp = fopen(argv[i], "rb"); fp = fopen(argv[i], "rb");
372 373 if (fp == NULL) { if (fp == NULL) {
373 374 printf("Error: Cannot open %s\n", argv[i]); printf("Error: Cannot open %s\n", argv[i]);
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/pjass

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/pjass

Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/pjass

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main