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)
Moved tests into this folder. 099d64a6284a26eafde87ef274c1210455db6f3e lep 2015-10-05 21:29:42
pjass now checks against //! +rb instead of //+rb. Whitespace allowed. 27da8d5250f0b815ef5d8765e0eac766ac4cce6b lep 2015-10-04 21:52:31
Optimized //+rb marker check. cb4a086136acb1a8d7b0bc8397237bbfbdc56191 lep 2015-10-04 18:11:13
Now allows //+rb everywhere. 4f366b09d651baf0846ed2097db94d35fe42b5a0 lep 2015-10-04 17:43:38
Added test target to the Makefile 0f2763df549a97364087c346f408e52ca9456c8d lep 2015-10-04 15:43:49
Allowes //+rb right before a function to ignore any returnbug errors in that function. Not throughoutly tested. 230863ba145b74be6dc8062787c8c9c1806d1c7a lep 2015-10-04 14:06:30
Directive to suppress warnings. f1538a555e3009cfd8cbd900347d523abdd11953 lep 2015-10-04 12:17:08
More Makefile enhancements. 94c97f7c5f943f09ee575e96e388e9e2c947385c lep 2015-10-04 11:34:36
Makefile enhancements 8bc7132422db4a3b90a82da4a63f7cfa9fdbe2f5 lep 2015-06-09 09:30:42
Changed canconvertreturn behaviour. a1ba7f1d59cc40f56d0b3e4855c31b3d66019d9d lep 2015-04-15 16:35:52
Rewrote string handling to better handle newlines. 434a8fe566783969cb69eb73b2792cd74dac71d3 lep 2015-02-12 15:13:54
Rewrote rawcode handling for somewhat better error messages. 1e687d921b09149e244d16d7abca398c0639ad6d lep 2015-02-08 20:08:22
Undefined variables are not suggested for other undefined variables. c5561c56dde18bbcf1d05bdec7b50804757c5ef8 lep 2015-02-08 15:39:10
Also changed gNone to gAny in else and elesif cases. 485e75aaa14eb8ae10058305f7b75c1abd19eb82 lep 2015-02-06 15:20:15
Changed statement default return type from gNone to gAny. 7a054ad7b62d77ae4a17ac97d913a19675dad111 lep 2015-02-06 15:12:31
Propagate returncheck through statements. b8977b07e11f8fd335851e3a2d69cb473492f85b lep 2015-02-06 15:07:36
Small changes. Removed some unused symbols. 83c8b2b0e6811380bddf6e92e3b2f843370d5e05 lep 2015-02-05 12:43:24
Only put locals into the initialized table. db20d22434506716774fa4e8577f98073f17d6c2 lep 2015-02-04 11:57:00
Changed min function to min makro. b5b6c824896935232743633ae57d060e5c6a046f lep 2015-02-04 11:33:14
Rewrote the hashtable. 55c0f9ae7d284df88c48e7c2ac1c547cda1d802a lep 2015-02-04 11:24:53
Commit 099d64a6284a26eafde87ef274c1210455db6f3e - Moved tests into this folder.
Author: lep
Author date (UTC): 2015-10-05 21:29
Committer name: lep
Committer date (UTC): 2015-10-05 21:29
Parent(s): 27da8d5250f0b815ef5d8765e0eac766ac4cce6b
Signer:
Signing key:
Signing status: N
Tree: b70e076a2def92c557783380f5bc909489a34370
File Lines added Lines deleted
Makefile 10 7
check.sh 4 2
fail.sh 1 1
File Makefile changed (mode: 100644) (index a4d5d35..da2da5f)
1 CC=gcc
2 1 CFLAGS=-w -O2 CFLAGS=-w -O2
3 2
4 3 VERSION:=$(shell git rev-parse --short HEAD) VERSION:=$(shell git rev-parse --short HEAD)
 
... ... pjass-git-$(VERSION).zip: pjass
33 32 zip -q pjass-git-$(VERSION).zip pjass.exe zip -q pjass-git-$(VERSION).zip pjass.exe
34 33
35 34
36 .PHONY: test test_check test_fail
35 .PHONY: test test-check test-fail print-testing
37 36
38 SHOULD_FAIL:=$(wildcard ../pjass-tests/should-fail/*.j)
39 SHOULD_CHECK:=$(wildcard ../pjass-tests/should-check/*.j)
37 SHOULD_FAIL=$(wildcard tests/should-fail/*.j)
38 SHOULD_CHECK=$(wildcard tests/should-check/*.j)
40 39
41 test: test_check test_fail
40 test: test-check test-fail
41 @echo ' Done'
42 42
43 test_check: pjass
43 print-testing: pjass
44 @echo -n Testing...
45
46 test-check: print-testing
44 47 @for file in $(SHOULD_CHECK); do \ @for file in $(SHOULD_CHECK); do \
45 48 ./check.sh "$$file" ; \ ./check.sh "$$file" ; \
46 49 done done
47 50
48 test_fail: pjass
51 test-fail: print-testing
49 52 @for file in $(SHOULD_FAIL); do \ @for file in $(SHOULD_FAIL); do \
50 53 ./fail.sh "$$file" ; \ ./fail.sh "$$file" ; \
51 54 done done
File check.sh changed (mode: 100644) (index bbfc7de..a377b9d)
3 3 msg=$(./pjass ../pjass-tests/common.j ../pjass-tests/Blizzard.j "$1" ) msg=$(./pjass ../pjass-tests/common.j ../pjass-tests/Blizzard.j "$1" )
4 4 if [[ "$?" == 1 ]]; then if [[ "$?" == 1 ]]; then
5 5 echo "Error in file '$1', but there should be none" echo "Error in file '$1', but there should be none"
6 echo "pjass output:"
7 echo $msg
6 if [[ "$VERBOSE" ]]; then
7 echo "pjass output:"
8 echo $msg
9 fi
8 10 exit 1 exit 1
9 11 fi fi
File fail.sh changed (mode: 100644) (index 8c84706..ba08e6c)
1 1 #!/usr/bin/env bash #!/usr/bin/env bash
2 2
3 ./pjass ../pjass-tests/common.j ../pjass-tests/Blizzard.j "$1" > /dev/null
3 ./pjass tests/common.j tests/Blizzard.j "$1" > /dev/null
4 4 if [[ "$?" == 0 ]]; then if [[ "$?" == 0 ]]; then
5 5 echo "No error in file '$1', but there should be some" echo "No error in file '$1', but there should be some"
6 6 exit 1 exit 1
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