[llvm-commits] [hlvm] r38137 - /hlvm/trunk/test/return0/helloworld.hlx
Reid Spencer
reid at x10sys.com
Sat Jul 7 17:00:12 PDT 2007
Author: reid
Date: Sat Jul 7 19:00:12 2007
New Revision: 38137
URL: http://llvm.org/viewvc/llvm-project?rev=38137&view=rev
Log:
Actually try to come up with a reasonable syntax and structure
for this test program.
Modified:
hlvm/trunk/test/return0/helloworld.hlx
Modified: hlvm/trunk/test/return0/helloworld.hlx
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/test/return0/helloworld.hlx?rev=38137&r1=38136&r2=38137&view=diff
==============================================================================
--- hlvm/trunk/test/return0/helloworld.hlx (original)
+++ hlvm/trunk/test/return0/helloworld.hlx Sat Jul 7 19:00:12 2007
@@ -2,11 +2,23 @@
<hlvm xmlns="http://hlvm.org/src/hlvm/Reader/XML/HLVM.rng"
pubid="http://hlvm.org/src/hlvm/test/xml2xml/helloworld.hlx">
<bundle name="helloworld">
- <var name="var" type="string"/>
+ <const name="hw" type="text"><text>Hello, World
</text></const>
<program name="helloworld">
- <var name="stdin"/>
- <store name="stdin"><open>pipe:///stdin</open></store>
- <ret><int>0</int></ret>
+ <var name="stdout" type="io"/>
+ <store name="stdout">
+ <open>hlvm:std:out</open>
+ </store>
+ <write>
+ <ref name="stdout"/>
+ <ref name="hw"/>
+ <len><ref name="hw"/></len>
+ </write>
+ <close>
+ <ref name="stdout"/>
+ </close>
+ <ret>
+ <int>0</int>
+ </ret>
</program>
</bundle>
</hlvm>
More information about the llvm-commits
mailing list