rev 199 - in trunk: . pr
SVN User <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mark Date: 2004-03-29 15:57:56 -0500 (Mon, 29 Mar 2004) New Revision: 199 Modified: trunk/STATUS.txt trunk/pr/test.pr Log: status changes Modified: trunk/STATUS.txt =================================================================== --- trunk/STATUS.txt 2004-03-29 18:41:31 UTC (rev 198) +++ trunk/STATUS.txt 2004-03-29 20:57:56 UTC (rev 199) @@ -37,7 +37,16 @@ ----------------------- TO-DO (highest priority first) ------------------------ +--- add var? form to lexer + +--- fix bugs from bugzilla + +--- Change tab indentation to spaces -- remove auto-continuation + +--- make print a function, support stdin, out, & err + --- write and publish prothon directives +--- credit Ruby --- need more test files to make releasing easier Modified: trunk/pr/test.pr =================================================================== --- trunk/pr/test.pr 2004-03-29 18:41:31 UTC (rev 198) +++ trunk/pr/test.pr 2004-03-29 20:57:56 UTC (rev 199) @@ -1,5 +1,23 @@ #!/usr/local/bin/prothon -print Sys.version +def Proto(*bases): + first = True + for i in Len(bases): + b = bases[i] + if first: p = b() + else: p.add_proto(b) + first = False + return p -print Sys.platform +x = Object() +y = Object() +Point = Proto(x, y) +with Point: + def .__init__(x, y): + .x = x; .y = y + +p = Point(1, 2) + +print p + +