Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion embedding languages in Perl 6
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BÁRTHÁZI András  
View profile  
 More options Apr 20 2005, 11:08 am
Newsgroups: perl.perl6.language
From: and...@barthazi.hu (BÁRTHÁZI András)
Date: Wed, 20 Apr 2005 17:08:51 +0200
Local: Wed, Apr 20 2005 11:08 am
Subject: embedding languages in Perl 6
Hi,

I'm just wondering, if the following would be possible with Perl 6 or not?

 > XML

$a=<elems><elem>Content #1</elem><elem>Content #2</elem></elems>;

say $a.elems[0].elem[1].content; # "Content #1"

for ($a.elems) { say $_.content; }

or XPath like syntax on a structure?

 > SQL

$a=select * from table;
for(select * from table where id>5) {
   say $_.id ~ ' -> ' $_.value;

}

The ideas coming from Comega, the next version of CSharp(?). Here's an
intro about it:

http://www.xml.com/pub/a/2005/01/12/comega.html?page=2

Or just search for "comega" with you favourite search engine.

The first one, creating native XML support for a language is not new,
E4X (EcmaScript for XML) is about the same:

http://www.ecma-international.org/publications/standards/Ecma-357.htm

I think both about macros, and it seem's it will be possible extend Perl
6 with them. But what do you think about extending Perl 6 (or Perl 6.1)
with native XML handling, like it's native regular expression / rule
handling?

Bye,
   Andras


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google