Jakob Praher | 2 Nov 2004 23:12
Picon
Favicon

scala ebnf and nuclass

hi all,

I couldn't find an ebnf grammar of scala neither in the src distro nor 
in the webcvs repository browser.

it would be nice if you can point me to it. (maybe i'm missing some 
place here).

another question:
What is nuclass [1] ?
While looking at the scala webcvs I found that, and it looked rather 
interesting. Is that some extension to scala or something rather 
theoretically?

thanks in advance
- Jakob

[1] - 
http://lamppc1s1.epfl.ch/viewcvs/viewcvs.cgi/scala/doc/papers/nuclass/nuclass.scala?rev=1.2&content-type=text/vnd.viewcvs-markup

Michel Schinz | 3 Nov 2004 08:18
Picon
Picon
Favicon

Re: scala ebnf and nuclass

Jakob Praher <jpraher <at> yahoo.de> writes:

> hi all,
>
> I couldn't find an ebnf grammar of scala neither in the src distro
> nor in the webcvs repository browser.

You will find it in the appendix of the Scala reference. The LaTeX
source for this part is there:

http://lamppc1s1.epfl.ch/viewcvs/viewcvs.cgi/scala/doc/reference/ReferencePartAppendix.tex

Michel.

Gary Lundie | 5 Nov 2004 19:23
Picon
Picon

AntTask.scala

Hi,

Im trying to compile scala programs from within a java program.  The way I
intend to do this is to use the scala.tools.scala4ant.AntTask$class program.  It
is possible to use the org.apache.tools.ant.taskdefs.Javac program in this
manner, and am hoping to apply the same theory to scalac.

However, in order to know exactly what methods I need to call to set the source
and destination files, I need to either see the source code for AntTask.scala,
or for someone to provide me with the method calls.

I have tried to access the file AntTask.scala from lamp.eplf.ch/~buraq/projects,
however, access is restricted to that file.

Any help you can provide me in this task would be much appreciated.

Regards
Gary Lundie

Ross Judson | 5 Nov 2004 22:29
Favicon

Re: CVSgrab (Was RE: cvsroot)

I used CVSGrab and was able to get the sources.  Decoding the makefile is
another story entirely ;)  The Scala system's Java parts are written in a
modified version of Java, compilable by Pico.  I've made batch files that are
able to compile up the basics of the system by invoking Pico appropriately. 
It's really screaming out for a ant file, which will probably be available at
some point; all we need are ant tasks that correspond to the types in the
support/make directory.

Burak Emir | 8 Nov 2004 11:22
Picon
Picon
Favicon

Scala4Ant wishlist, was Re: CVSgrab (Was RE: cvsroot)

Lucky you! :-) We disabled CVSview  a couple of days ago (we are 
reorganizing our infrastructure these days).

I agree completely that using make is anachronistic, but as you might 
have noticed our Makefile has grown into a very sophisticated things 
that is hard to replace. To some extent, one can also blame the ant 
inertia of the ant fanatics here  (such as myself), which use ant for 
basic development tasks and lack knowledge and resources  to explore 
more sophisticated uses of Ant.

We certainly appreciate help that could lead to gradual replacement of 
the Makefile, for instance,

1. more ant tasks for scala (scaladoc), more consequent handling of 
compiler options in ant tasks
2. a tool for single-source documentation of ant tasks
Here the idea is that there is a tool (of course with its own ant task) 
that retrieves XML documentation from the end of a file and formats in 
nicely in HTML (ideally without using any non Scala programs or libraries).

For some classes (like ant tasks), having the documentation in the 
source file is the only sane thing to do, because this lets you easily 
keep things up to date. It is not a replacement for good Java doc, 
rather for hand-crafted, unmaintainable HTML documenation pages like 
this one http://scala.epfl.ch/docu/ant.html

In a first approximation the documentation format can be specific for 
ant tasks (we really need this).
Does anything like this already exist?

(Continue reading)

Burak Emir | 8 Nov 2004 11:55
Picon
Picon
Favicon

access to source Re: AntTask.scala

Glad to see you interest in Scala and Ant. I have disabled CVSview due 
to reorganization here.

Find the complete sources (but no way to build them :-o) at 
lamp.epfl.ch/~buraq/scala.

This should be updated with a snapshot of the scala/sources directory 
every night (if my script works).

hope this helps!

cheers,
Burak

Gary Lundie wrote:

>Hi,
>
>Im trying to compile scala programs from within a java program.  The way I
>intend to do this is to use the scala.tools.scala4ant.AntTask$class program.  It
>is possible to use the org.apache.tools.ant.taskdefs.Javac program in this
>manner, and am hoping to apply the same theory to scalac.
>
>However, in order to know exactly what methods I need to call to set the source
>and destination files, I need to either see the source code for AntTask.scala,
>or for someone to provide me with the method calls.
>
>I have tried to access the file AntTask.scala from lamp.eplf.ch/~buraq/projects,
>however, access is restricted to that file.
>
(Continue reading)

Burak Emir | 8 Nov 2004 13:54
Picon
Picon
Favicon

scala sources, 2nd try

Erm, source archives are published as .tar.bz2 now, due to mysterious 
xargs or jar limitation.

cheers.

--

-- 
Burak Emir

http://lamp.epfl.ch/~buraq

Chris Heald | 8 Nov 2004 15:27
Picon
Favicon

[Scaliptor-news] Scaliptor - New release 0.3.2

Scaliptor - the Scala Development Tools plugin for Eclipse reaches 0.3.2.

This is a bug fix release.
Preferences should now be saved enabling more systems to compile/build and
mark errors in scala code.
For more information go to www.scaliptor.org.

Get the latest version here:
http://sourceforge.net/project/showfiles.php?group_id=111582
Please test it and let me know how if you have any problems.

Thanks
Chris

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Scaliptor-news mailing list
Scaliptor-news <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scaliptor-news

Chris Heald | 8 Nov 2004 20:08
Picon

Scaliptor - Eclipse Scala plugin

Scaliptor - the Scala Development Tools plugin for Eclipse reaches 0.3.2.

This is a bug fix release.

Preferences should now be saved enabling more systems to compile/build and
mark errors in scala code.

For more information go to www.scaliptor.org
Get the latest version here:

http://sourceforge.net/project/showfiles.php?group_id=111582 

Please test it and let me know how if you have any problems.

Thanks

Chris

Oost, Arco | 10 Nov 2004 11:00

compiler crash using 1.3.0.4 on Linux

Dear sirs,

I don't know if this is the right place to report a bug, but I didn't seem to be able to report a bug directly.

We have just started a pilot project to see if scala is a viable addition to our current Java development. So
far I am very impressed by the scala language.

I get a compiler crash while compiling my code. I have abstracted the code to the silly one  below. I am using
scala 1.3.0.4 on Linux. I have tested with both jdk 1.4.2_05 and jdk 1.5.0. In both cases the compiler
crashes. I expected the code below to simply return a boolean.

Regards,
  Arco Oost

====================

import scala.collection.mutable._;

class Test {
  def test() = {
    val map = new HashMap[String, String]();
    map.update("1", "one");

    val myVal = map.get("1");
    (myVal.isEmpty) || (myVal.get.equals("two"));
  }
}

====================

(Continue reading)


Gmane