org.kiama.rewriting is the package. You need to import things from the Rewriting object in that package. E.g.,
scala> import org.kiama.rewriting.Rewriter.strategyf
import org.kiama.rewriting.Rewriter.strategyf
scala> val fail = strategyf (_ => None)
fail: org.kiama.rewriting.Rewriter.Strategy = <function1>
You can do something like
import org.kiama.rewriting.Rewriter.{foo, bar, ble}
if you want to import more than one thing from that object,
or
import org.kiama.rewriting.Rewriter._
if you want to import them all.
I've updated the wiki page to make this clearer.
regards,
Tony
> import org.kiama.rewriting.Rewriter._
Yup. This works now.
> I've updated the wiki page to make this clearer.
Great. :)
Thanks,
--Hossein
--------------------------------------------------------------------------------------------------------------
Seyed H. HAERI (Hossein)
Research Assistant
Institute for Software Systems (STS)
Technical University of Hamburg (TUHH)
Hamburg, Germany
ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------
>> I've updated the wiki page to make this clearer.
Just noticed a typo in this note:
import org.kiama.rewriting.Rewriting._
should have been:
import org.kiama.rewriting.Rewriter._
TTFN,
cheers,
Tony
> --
> You received this message because you are subscribed to the Google Groups "kiama" group.
> To post to this group, send email to ki...@googlegroups.com.
> To unsubscribe from this group, send email to kiama+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/kiama?hl=en.
>