hawkw / decaf

like Java, but less so
hawkweisman.me/decaf
Other
18 stars 4 forks source link

Add a Good CLI #21

Open hawkw opened 10 years ago

hawkw commented 10 years ago

My current command-line interface (Compiler.scala) works, but is pretty basic. If we want to add compiler features other than parsing & compiling one Decaf source code file, such as linking, strictness, choosing the name of the output file, or a REPL, we're gonna need a better command-line argument parser.

@ArcticLight and I are both really big fans of Docopt, the Pythonic Command-Line Parser, so I figure we'll use the Scala port of Docopt.

hawkw commented 9 years ago

bdea85784c6a0e210bb41fc58fc57a324a039cce makes a pass at this. I used Scopt rather than Docopt (mostly 'cause type-safety).