diff options
author | Martin Odersky <odersky@gmail.com> | 2013-02-01 17:52:00 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-02-01 17:52:00 +0100 |
commit | abc8f5e1c382b1ead761976227878c4c38ebfbf5 (patch) | |
tree | b135a1bd0945f375e256af8e4ddfbd818c567865 /src/dotty/tools/dotc/config/Settings.scala | |
parent | 5610fe1abbb8e4cb005d644f37669f872327828b (diff) | |
download | dotty-abc8f5e1c382b1ead761976227878c4c38ebfbf5.tar.gz dotty-abc8f5e1c382b1ead761976227878c4c38ebfbf5.tar.bz2 dotty-abc8f5e1c382b1ead761976227878c4c38ebfbf5.zip |
Added config package with settings, platform.
Diffstat (limited to 'src/dotty/tools/dotc/config/Settings.scala')
-rw-r--r-- | src/dotty/tools/dotc/config/Settings.scala | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/config/Settings.scala b/src/dotty/tools/dotc/config/Settings.scala new file mode 100644 index 000000000..83c7a747f --- /dev/null +++ b/src/dotty/tools/dotc/config/Settings.scala @@ -0,0 +1,26 @@ +package dotty.tools.dotc +package config + + +class Settings { + + protected def defaultClasspath = sys.env.getOrElse("CLASSPATH", ".") + + protected implicit def mkSetting[T](x: T): Setting[T] = new Setting(x) + + var default: Settings = this + + var classpath: Setting[String] = defaultClasspath + var debug: Setting[Boolean] = false + var verbose: Setting[Boolean] = false + + var XmaxClassfileName: Setting[Int] = 255 + + var YtermConflict: Setting[String] = "error" + + def processArguments(arguments: List[String], processAll: Boolean): (Boolean, List[String]) = ??? + + +} + +case class Setting[T](value: T)
\ No newline at end of file |