logo       

rev 220 - in trunk: . include/prothon pr: msg#00088

Subject: rev 220 - in trunk: . include/prothon pr
Author: mark
Date: 2004-03-30 17:44:32 -0500 (Tue, 30 Mar 2004)
New Revision: 220

Modified:
   trunk/STATUS.txt
   trunk/include/prothon/prothon.h
   trunk/pr/test.pr
Log:
test file for bug 10, status cleanup

Modified: trunk/STATUS.txt
===================================================================
--- trunk/STATUS.txt    2004-03-30 20:45:19 UTC (rev 219)
+++ trunk/STATUS.txt    2004-03-30 22:44:32 UTC (rev 220)
@@ -37,19 +37,17 @@
 
 ----------------------- TO-DO (highest priority first) ------------------------
 
+--- implement new space/tab indent scheme
+
 --- 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
-
 --- help() in interactive console()
 
 --- -d -m -l cmd-line options missing
@@ -66,7 +64,6 @@
 
 --- add thread object so prothon code can create threads
 
-
 --- check for OverflowError in math routines
 
 --- add convenience func or macro for type/value checking of parms

Modified: trunk/include/prothon/prothon.h
===================================================================
--- trunk/include/prothon/prothon.h     2004-03-30 20:45:19 UTC (rev 219)
+++ trunk/include/prothon/prothon.h     2004-03-30 22:44:32 UTC (rev 220)
@@ -91,9 +91,9 @@
 //#define DEBUG_THREADS
 //#define DEBUG_MEM_MGR
 //#define TRACE_PARSER
-#define TRACE_INTERPRETER
+//#define TRACE_INTERPRETER
 //#define DUMP_MODULE_CODE
-//#define DUMP_OBJECTS_AT_END
+#define DUMP_OBJECTS_AT_END
 
 //************************* BASIC TYPE DEFINITIONS 
********************************
 

Modified: trunk/pr/test.pr
===================================================================
--- trunk/pr/test.pr    2004-03-30 20:45:19 UTC (rev 219)
+++ trunk/pr/test.pr    2004-03-30 22:44:32 UTC (rev 220)
@@ -1,25 +1,14 @@
 #!/usr/local/bin/prothon
 
-import List, Tuple
-
-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
-
-x = Object()
-y = Object()
-Point = Proto(x, y)
+Point = Object()
 with Point:
-       def .__init__(x, y):
-               .x = x;  .y = y
+       .x0 = 0
+       def .__init__( x = 1 ):
+               .x0 = x
 
-p = Point(1, 2)
+p1 = Point()
+p2 = Point(2)
+print 'Point.x0',Point.x0
+print 'p1.x0',p1.x0
+print 'p2.x0',p2.x0
 
-print p
-
-




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe