The Artima Developer Community
Sponsored Link

Java Buzz Forum
Pnuts Updates (Tweaks in parser, pnuts.xml module, bug fixes, etc.)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Toyokazu Tomatsu

Posts: 66
Nickname: tomatsu
Registered: Jul, 2003

Toyokazu Tomatsu is a developer of Pnuts.
Pnuts Updates (Tweaks in parser, pnuts.xml module, bug fixes, etc.) Posted: Sep 28, 2004 4:43 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Toyokazu Tomatsu.
Original Post: Pnuts Updates (Tweaks in parser, pnuts.xml module, bug fixes, etc.)
Feed Title: Pnuts Addict
Feed URL: http://pnuts.org/~tomatsu/jroller-rss.xml
Feed Description: Toyokazu Tomatsu's Weblog
Latest Java Buzz Posts
Latest Java Buzz Posts by Toyokazu Tomatsu
Latest Posts From Pnuts Addict

Advertisement
Updates in Pnuts 20040928(1.1b2, 1.0rc2)

  • - Array expression{...} is added(1.1b2)
        {1,2,3}    // same as [1,2,3]
        (double[][]){{1,2,3}}
    
  • Newline is allowed before binary operators (1.1b2)
        if (true
        &&
        true)
        {
            println("ok")
        }
    
  • - Added a way to handle multiple syntax errors (1.1b2)
  • - DOM object manipulation is simplified
        doc = readDocument(getURL("http://pnuts.org/~tomatsu/blog/rss.pnut"))
        nodeAccess(true)
        printAll(doc.rss.channel.item.title)
    
  • - project() and call() are added (1.1b2, 1.0rc2)
  • - nodeEdit()is added (1.1b2, 1.0rc2)
        nodeEdit(true)   // undefined variables are interpreted as tag functions
        html(head(title("pnutsblog")), body(p("test"))) 
         // --> <html><head><title>pnutsblog</title></head><body><p>test</p></body></html>
    
  • - element() and defineTags() are added (1.1b2, 1.0r2)
        foo = element("foo")  // tag function
        foo("bar")   // --> <foo>bar</foo>
    
        defineTags("foo", "bar", "baz")  // specified tags are defined in the current package
        foo(bar(baz("hoge")))  // --> <foo><bar><baz>hoge</baz></bar></foo>
    
        doc = readDocument(getURL("http://pnuts.org/~tomatsu/blog/rss.pnut"))
        nodeEdit(true)
        channel = doc.rss.channel
        htmldoc = html(
                    head(
                      title(channel.title)
                    ),
                    body( 
                      h1(channel.title),
                        call(ul, project(channel.item.title, li))
                    )
                  )
        writeDocument(htmldoc())
    
  • Bug fixes:

Read: Pnuts Updates (Tweaks in parser, pnuts.xml module, bug fixes, etc.)

Topic: The Magic Cauldron Previous Topic   Next Topic Topic: ClientJava.com Links(5) - SWT Layout Managers, Java Outlook Connector, JetBee Java Print Library

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use