summaryrefslogtreecommitdiff
path: root/src/repl/scala/tools/nsc/interpreter/IMain.scala
diff options
context:
space:
mode:
authorDen Shabalin <den.shabalin@gmail.com>2013-08-08 18:52:33 +0200
committerDen Shabalin <den.shabalin@gmail.com>2013-08-14 11:45:47 +0200
commita06a771dea3ade03c85fb3835632a8bc54392d5e (patch)
tree6fb68ad62baac31e0103398c2fc6703d918f7abc /src/repl/scala/tools/nsc/interpreter/IMain.scala
parent5439c4c9aa9ef03c061fa9c2c4689a722729b8f9 (diff)
downloadscala-a06a771dea3ade03c85fb3835632a8bc54392d5e.tar.gz
scala-a06a771dea3ade03c85fb3835632a8bc54392d5e.tar.bz2
scala-a06a771dea3ade03c85fb3835632a8bc54392d5e.zip
refactor parser entry points and extract a few methods out
This commit contains three logical changes: 1. Split `templateStatSeq` into two methods as we need more reliable parsing of template body alone for new `parseStats` entry point. 2. Add new parser entry point called `parseStats` which is aimed towards use in tools that require parsing of Scala code that can be written inside of a template. Such functionality is required for parsing lines in repl, parsing code through toolbox, parsing and running scala scripts and lastly for quasiquotes. All of them are refactored to use this very method in the next commits. A new method called `templateStatsCompat` is also added to make this commit pass the tests but it's a temporary hack that will be removed in next commit in favor of `parseStats`. 3. Extract out a few methods like `isCaseDefStart`, `expectedMsgTemplate` and `parseRule`. These are needed to override parser behaviour in updated quasiquotes parser (see next commits).
Diffstat (limited to 'src/repl/scala/tools/nsc/interpreter/IMain.scala')
0 files changed, 0 insertions, 0 deletions