ktakagaki / hayabaya

0 stars 0 forks source link

main function examples #20

Closed ktakagaki closed 8 years ago

ktakagaki commented 8 years ago

@slentzen

The fork isn't reattached yet, so manually pull the branch https://github.com/ktakagaki/hayabaya/tree/kentaScala from your local repo.

I debugged your sbt file, it had

mainClass in (Compile, packageBin) := Some("de.lin_magdeburg.HayabayaMain")

instead of

mainClass in (Compile, packageBin) := Some("de.lin_magdeburg.hayabaya.HayabayaMain")

Run as follows in sbt:

>run hello 10

which will give

[info] Running de.lin_magdeburg.hayabaya.HayabayaMain hello 10
[info] [In Scala] Welcome to the Hayabaya Microbenchmark project
[info] The value of aTPE is: DOUBLE
[info] Hi Soren! Don't get too fancy with tuples, and parsing will be fine. Parsed: hello, 10
[success] Total time: 3 s, completed Jan 25, 2016 4:23:37 PM

try also

>run hello

and

>run hello hello2

to see error messages