Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Assignment to $[ is no longer supported errors #164

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

twwhatever
Copy link

Assignment to $[ is no longer supported in Perl 5.30. This at least allows the example to compile and work.

Test plan
Verify wbd.bin can be compiled to the same binary as the one in repo.

ldbsrc % rm ldb/wbd.bin
ldbsrc % git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
(use "git add/rm ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
deleted: ldb/wbd.bin

no changes added to commit (use "git add" and/or "git commit -a")
ldbsrc % touch wbd/wbd.lex.utf8
ldbsrc % make -f Makefile.gnu lang=wbd all
fa_build_conf
--in=wbd/ldb.conf.small
--out=wbd/tmp/ldb.mmap.small.txt
fa_fsm2fsm_pack --type=mmap
--in=wbd/tmp/ldb.mmap.small.txt
--out=wbd/tmp/ldb.conf.small.dump
--auto-test
fa_build_lex --dict-root=. --full-unicode --in=wbd/wbd.lex.utf8
--tagset=wbd/wbd.tagset.txt --out-fsa=wbd/tmp/wbd.rules.fsa.txt
--out-fsa-iwmap=wbd/tmp/wbd.rules.fsa.iwmap.txt
--out-map=wbd/tmp/wbd.rules.map.txt
fa_fsm2fsm_pack --alg=triv --type=moore-dfa --remap-iws --use-iwia --in=wbd/tmp/wbd.rules.fsa.txt --iw-map=wbd/tmp/wbd.rules.fsa.iwmap.txt --out=wbd/tmp/wbd.fsa.small.dump
fa_fsm2fsm_pack --alg=triv --type=mmap --in=wbd/tmp/wbd.rules.map.txt --out=wbd/tmp/wbd.mmap.small.dump --auto-test
fa_merge_dumps --out=ldb/wbd.bin wbd/tmp/ldb.conf.small.dump wbd/tmp/wbd.fsa.small.dump wbd/tmp/wbd.mmap.small.dump
ldbsrc % printf "Hi There! This is a simple test." | fa_lex --ldb=ldb/wbd.bin --tagset=wbd/wbd.tagset.txt
Hi/WORD There/WORD !/WORD This/WORD is/WORD a/WORD simple/WORD test/WORD ./WORD
ldbsrc % git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants