decaf icon indicating copy to clipboard operation
decaf copied to clipboard

Add a Good CLI

Open hawkw opened this issue 11 years ago • 1 comments

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 avatar Oct 10 '14 17:10 hawkw

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

hawkw avatar Dec 21 '14 18:12 hawkw