rev 220 - in trunk: . include/prothon pr

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
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
-
-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.