Skip to content

Commit

Permalink
parse subs and signature subs separately
Browse files Browse the repository at this point in the history
Currently the toker returns a SUB or ANONSUB token at the beginning
of a sub (or BEGIN etc). Change it so that in the scope of
'use feature "signatures"', it returns a SIGSUB / ANON_SIGSUB token
instead.

Then in perly.y, duplicate the 2 rules containing SUB / ANONSUB
to cope with these two new tokens.

The net effect of this is to use different rules in the parser for
parsing subs when signatures are in scope.

Since the two sets of rules have just been cut and pasted, there should
be no functional changes yet, but that will change shortly.
  • Loading branch information
iabyn committed Feb 26, 2018
1 parent 3d8071e commit 3a68ba9
Show file tree
Hide file tree
Showing 5 changed files with 1,447 additions and 1,371 deletions.
Loading

0 comments on commit 3a68ba9

Please sign in to comment.