Re: [lsug] dojo code - Macros

From: user 8.
Sent on: Friday, June 22, 2012 2:00 AM
Hello chaps,

I've managed to make the make the macros tutorial work.
      http://scalamacros.org/documentation/gettingstarted.html


In a nutshell, it works only with 2.10-M3.
No other milestone will do.



export JavaDEV=/opt/java-dev

export ANT_VERSION=1.8.2
export M3_VERSION=3.0.4
export JAVA_VERSION=1.7.0_04
export SCALA_VERSION=2.10.0-M3

export ANT_HOME=${JavaDEV}/apache-ant-${ANT_VERSION}
export M3_HOME=${JavaDEV}/apache-maven-${M3_VERSION}
export JAVA_HOME=${JavaDEV}/jdk${JAVA_VERSION}-linux-x86_64
export SCALA_HOME=${JavaDEV}/scala-${SCALA_VERSION}

export PATH=${PATH}:${SCALA_HOME}/bin:${JAVA_HOME}/bin:${M3_HOME}/bin:${ANT_HOME}/bin


I hope it helps :)

Richard Gomes
twitter: frgomes
-------------------------------------------------------------------
Skype: dial skype2ippi           then dial[masked] when prompted.
GTalk: dial [address removed]  then dial[masked] when prompted.
SIP:   dial [address removed]
inum.org: [masked]
mobile:   [masked]

On 22/06/12 01:37, Richard Gomes wrote:
Thanks all for the nice opportunity for networking, sharing ideas and eventually learn something, as far difficulties permit.


I've mentioned ScalaCL and a project in my github account, called poc-scalacl.
I realized that there are difficulties related to environment settings, tooling and requirements I've never mentioned in my project poc-scalacl. I will be improving the readme file soon. Keep tuned:

    https://github.com/frgomes/poc-scalacl



I've also mentioned some work I did related on Scala Combinators.
I started this project because I was not satisfied with ANTLR and StringTemplate.
The basic idea is:

java launcher (command line)  --\
                                 > metaDSL
maven --------------------------/   | | |
                                    | | |
                                    / | \
                                   /  |  \
                     metaDSL plugin  ... 
metaDSL plugin

You write a new metaDSL plugin, which accepts a certain DSL of your choice or you've just invented.
Because there's a java launcher, you can run your plugin from the command line.
Because metaDSL is actually a mojo (Maven plugin) you can run it as part of your build process.

Keep tuned: https://github.com/frgomes/metadsl

Note: I admit that documentation is poor at the moment. I also admit that the examples are simplistic.
I plan to publish a plugin which accepts a DSL for FSMs (Finite State Machines), as per the famous article from Martin Fowler on this subject.

Thanks
Richard Gomes
twitter: frgomes
-------------------------------------------------------------------
Skype: dial skype2ippi           then dial[masked] when prompted.
GTalk: dial [address removed]  then dial[masked] when prompted.
SIP:   dial [address removed]
inum.org: [masked]
mobile:   [masked]

On 18/05/12 12:38, Andy Hicks wrote:
Hi

Thanks to Paweł for last nights dojo, was good fun.

The code for the mega mud AI Combinator Parser can be found at 



andy






--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Andy Hicks ([address removed]) from London Scala Users' Group.
To learn more about Andy Hicks, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Richard Gomes ([address removed]) from London Scala Users' Group.
To learn more about Richard Gomes, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

  • Scala.World

    25% off the full price with LSUG256B

  • Scala Dojo

    Web site for monthly Scala Dojo

  • Scala Jobs

    Google Group of Scala Jobs in the London Area

  • apply(Scala)

    Use promocode LSUGAppliesScala for €75 discount on the €200 Early Bird

  • _.underscore

    Scala consultants, trainers, and developers, based in London, UK

  • Springer

    Help and supporters of the monthly dojo

  • Mind Candy

    Help with the Adv Scala Meet-up

  • Skills Matter

    Provide the venue for many of our meetings.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy