aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-11-15 13:12:11 +0100
committerBjörn Gustavsson <[email protected]>2017-11-30 12:46:50 +0100
commit0c4574cc31414a5204eabfad7eb0ac5095c0ace1 (patch)
treec6f4cbe472b21410c57c66bb25a0aefe77398113 /lib/hipe
parent6fb6f4222f2cf924cbb9174d33c3b3190cfe52f2 (diff)
downloadotp-0c4574cc31414a5204eabfad7eb0ac5095c0ace1.tar.gz
otp-0c4574cc31414a5204eabfad7eb0ac5095c0ace1.tar.bz2
otp-0c4574cc31414a5204eabfad7eb0ac5095c0ace1.zip
erl_parse: Use a new pat_expr rule for pattern expressions
In the grammar file for the Erlang language, patterns are parsed as expressions. erl_lint will then weed out expressions that are not legal patterns. The rule sharing causes problems if we were to introduce new syntax, for example a pattern followed by a ':'. There would be a shift/reduce conflict, and a pattern followed by a ':' would be parsed as a remote call. Introduce a new pat_expr rule to express exactly the subset of expressions that is allowed in pattern. Note: For the moment, we must allow full expressions in case clauses to keep 'merl' working.
Diffstat (limited to 'lib/hipe')
0 files changed, 0 insertions, 0 deletions