OSDN Git Service

happyabc/happyabc.git
15 years agoRefactoring: method-generate
MIZUNO Hiroki [Sat, 23 Aug 2008 03:23:25 +0000 (12:23 +0900)]
Refactoring: method-generate

15 years agoFix: testcase for codegen
mzp [Thu, 21 Aug 2008 03:58:40 +0000 (12:58 +0900)]
Fix: testcase for codegen

15 years agoAdd: generate abc-file which can be embeded in swf.
MIZUNO Hiroki [Wed, 20 Aug 2008 13:01:18 +0000 (22:01 +0900)]
Add: generate abc-file which can be embeded in swf.

15 years agosupporting for swf
MIZUNO Hiroki [Wed, 20 Aug 2008 12:52:19 +0000 (21:52 +0900)]
supporting for swf

15 years agoAdd: invoke method
MIZUNO Hiroki [Wed, 20 Aug 2008 12:04:52 +0000 (21:04 +0900)]
Add: invoke method

- add instance method invocation.

15 years agoADD: unittest for define-class/new
mzp [Wed, 20 Aug 2008 09:40:52 +0000 (18:40 +0900)]
ADD: unittest for define-class/new

15 years agoUPDATE: now,Ruby is not required for test
MIZUNO Hiroki [Wed, 20 Aug 2008 06:43:48 +0000 (15:43 +0900)]
UPDATE: now,Ruby is not required for test

15 years agoUPDATE: Readme
mzp [Wed, 20 Aug 2008 03:57:47 +0000 (12:57 +0900)]
UPDATE: Readme

15 years agoFix: add class name to global-env
MIZUNO Hiroki [Wed, 20 Aug 2008 01:25:45 +0000 (10:25 +0900)]
Fix: add class name to global-env

15 years agoChange: use CPP & one-liner for collectiong test suite.
MIZUNO Hiroki [Wed, 20 Aug 2008 01:23:06 +0000 (10:23 +0900)]
Change: use CPP & one-liner for collectiong test suite.

15 years agoChange: Class name is lexical -> global
MIZUNO Hiroki [Wed, 20 Aug 2008 00:48:26 +0000 (09:48 +0900)]
Change: Class name is lexical -> global

- If I define class as local, AVM2 raise corruption error.

15 years agoAdd: "new" special form to create instance from class.
MIZUNO Hiroki [Mon, 18 Aug 2008 12:27:52 +0000 (21:27 +0900)]
Add: "new" special form to create instance from class.

- syntax: (new Class arg0 arg1)

15 years agoAdd: call base class constructor
MIZUNO Hiroki [Mon, 18 Aug 2008 11:38:07 +0000 (20:38 +0900)]
Add: call base class constructor

15 years agoUpdate: README
MIZUNO Hiroki [Mon, 18 Aug 2008 11:27:02 +0000 (20:27 +0900)]
Update: README

15 years agoChange: 'make count' outputs code-line summary
MIZUNO Hiroki [Mon, 18 Aug 2008 11:20:43 +0000 (20:20 +0900)]
Change: 'make count' outputs code-line summary

15 years agoAdd: instruction for constructor
MIZUNO Hiroki [Mon, 18 Aug 2008 11:15:44 +0000 (20:15 +0900)]
Add: instruction for constructor

15 years agoAdd: support namespace
MIZUNO Hiroki [Mon, 18 Aug 2008 02:19:07 +0000 (11:19 +0900)]
Add: support namespace

15 years agoFix: test-code for class-stmt
MIZUNO Hiroki [Mon, 18 Aug 2008 01:47:42 +0000 (10:47 +0900)]
Fix: test-code for class-stmt

15 years agoChange: change 'define-class' from expr to stmt.
MIZUNO Hiroki [Sun, 17 Aug 2008 01:50:11 +0000 (10:50 +0900)]
Change: change 'define-class' from expr to stmt.

- Because 'define-class' changes environment, it is not expr,but stmt.

15 years agoChange: generate class code which can be dumped by abcdump.
MIZUNO Hiroki [Sat, 16 Aug 2008 07:30:08 +0000 (16:30 +0900)]
Change: generate class code which can be dumped by abcdump.

- Fix: traits encoding
- Add: Sealed flag

15 years agoMerge branch 'class_support' of git@github.com:mzp/scheme-abc into class_support
MIZUNO Hiroki [Sat, 16 Aug 2008 02:33:22 +0000 (11:33 +0900)]
Merge branch 'class_support' of git@github.com:mzp/scheme-abc into class_support

15 years agoRevert "Support newclass"
MIZUNO Hiroki [Sat, 16 Aug 2008 02:33:16 +0000 (11:33 +0900)]
Revert "Support newclass"

This reverts commit 134f3773c22401cb3851110eaaba0622902e6407.

15 years agoRefactoring: add newline
mzp [Fri, 15 Aug 2008 09:28:55 +0000 (18:28 +0900)]
Refactoring: add newline

15 years agoFix: generate runnable class code
mzp [Fri, 15 Aug 2008 09:20:25 +0000 (18:20 +0900)]
Fix: generate runnable class code

15 years agoSupport newclass
MIZUNO Hiroki [Fri, 15 Aug 2008 04:44:33 +0000 (13:44 +0900)]
Support newclass

15 years agoSupport class compile.
MIZUNO Hiroki [Fri, 15 Aug 2008 00:42:30 +0000 (09:42 +0900)]
Support class compile.

- We can generate valid abc with class. But cannot run it.

15 years agogenerate class-info
MIZUNO Hiroki [Thu, 14 Aug 2008 01:02:16 +0000 (10:02 +0900)]
generate class-info

15 years agosupport ast.class
MIZUNO Hiroki [Thu, 14 Aug 2008 00:56:21 +0000 (09:56 +0900)]
support ast.class

15 years agomake meth.name collectable
MIZUNO Hiroki [Mon, 11 Aug 2008 14:09:21 +0000 (23:09 +0900)]
make meth.name collectable

15 years agochange type of Asm.meth.name (string to multiname)
MIZUNO Hiroki [Mon, 11 Aug 2008 11:40:28 +0000 (20:40 +0900)]
change type of Asm.meth.name (string to multiname)

15 years agofix asm_klass
MIZUNO Hiroki [Mon, 11 Aug 2008 08:34:58 +0000 (17:34 +0900)]
fix asm_klass

15 years agoAdd assemble class
MIZUNO Hiroki [Mon, 11 Aug 2008 04:15:01 +0000 (13:15 +0900)]
Add assemble class

15 years agoSplit instruction module from asm module.
MIZUNO Hiroki [Mon, 11 Aug 2008 02:46:49 +0000 (11:46 +0900)]
Split instruction module from asm module.

Old:
  Because asm module contains "#include", we cannot load it at top-level.

New:
  The code which contains "#include" is separeted to instruction module.
  So,we can load asm module at top-level

15 years agoAdd NewClass instruction.
MIZUNO Hiroki [Sun, 10 Aug 2008 07:35:37 +0000 (16:35 +0900)]
Add NewClass instruction.

To archive this,change as following:

- add klass,a data type for class
- each instruction config can have multi sub-methods

15 years agofix bug: bytes_of_instance
MIZUNO Hiroki [Sun, 10 Aug 2008 03:23:00 +0000 (12:23 +0900)]
fix bug: bytes_of_instance

15 years agoadd enocde function of instance_info
MIZUNO Hiroki [Fri, 8 Aug 2008 23:32:45 +0000 (08:32 +0900)]
add enocde function of instance_info

15 years agoMerge branch 'master' into class_support
Hiroki MIZUNO [Fri, 8 Aug 2008 07:33:16 +0000 (16:33 +0900)]
Merge branch 'master' into class_support

15 years agochange the place where call Closuretrans
Hiroki MIZUNO [Fri, 8 Aug 2008 07:33:02 +0000 (16:33 +0900)]
change the place where call Closuretrans

15 years agoadd test for Abc.bytes_of_class
MIZUNO Hiroki [Thu, 7 Aug 2008 13:18:43 +0000 (22:18 +0900)]
add test for Abc.bytes_of_class

15 years agoadd comment
MIZUNO Hiroki [Thu, 7 Aug 2008 13:10:26 +0000 (22:10 +0900)]
add comment

15 years agoadd class
MIZUNO Hiroki [Thu, 7 Aug 2008 13:04:03 +0000 (22:04 +0900)]
add class

15 years agoremove warn
MIZUNO Hiroki [Thu, 7 Aug 2008 12:50:32 +0000 (21:50 +0900)]
remove warn

15 years agoAdd class_info and instance_info data type to Abc module
MIZUNO Hiroki [Thu, 7 Aug 2008 12:42:31 +0000 (21:42 +0900)]
Add class_info and instance_info data type to Abc module

15 years agoAdd some function to HList.
mzp [Tue, 5 Aug 2008 11:57:35 +0000 (20:57 +0900)]
Add some function to HList.

15 years agoRemove Cmalp4StackTracer.
mzp [Tue, 5 Aug 2008 11:22:58 +0000 (20:22 +0900)]
Remove Cmalp4StackTracer.

Camlp4Stacktracer too slow. Use OCAMLRUNPARAM=b.

15 years agoHaskell linke list util
mzp [Mon, 4 Aug 2008 11:55:28 +0000 (20:55 +0900)]
Haskell linke list util

15 years agoadd test case for closure transfom
MIZUNO Hiroki [Mon, 4 Aug 2008 00:07:11 +0000 (09:07 +0900)]
add test case for closure transfom

15 years agoSplit Ast to Codegen/Ast/ClosureTrans
MIZUNO Hiroki [Sun, 3 Aug 2008 23:51:10 +0000 (08:51 +0900)]
Split Ast to Codegen/Ast/ClosureTrans

15 years agosplit closure-warp and generate-expr
MIZUNO Hiroki [Sun, 3 Aug 2008 13:17:28 +0000 (22:17 +0900)]
split closure-warp and generate-expr

15 years agoadd unittest for asm
MIZUNO Hiroki [Sun, 3 Aug 2008 12:27:21 +0000 (21:27 +0900)]
add unittest for asm

15 years agoenv
MIZUNO Hiroki [Sat, 2 Aug 2008 23:27:05 +0000 (08:27 +0900)]
env

15 years agosuuport 'hoge
MIZUNO Hiroki [Sat, 2 Aug 2008 23:23:07 +0000 (08:23 +0900)]
suuport 'hoge

15 years agoadd quote lex
MIZUNO Hiroki [Sat, 2 Aug 2008 23:20:18 +0000 (08:20 +0900)]
add quote lex

15 years agoadd to_string to sexp module
MIZUNO Hiroki [Sat, 2 Aug 2008 23:17:15 +0000 (08:17 +0900)]
add to_string to sexp module

15 years agorename
MIZUNO Hiroki [Sat, 2 Aug 2008 23:03:19 +0000 (08:03 +0900)]
rename

15 years agoadd comment
MIZUNO Hiroki [Sat, 2 Aug 2008 23:00:25 +0000 (08:00 +0900)]
add comment

15 years agoremove pool
MIZUNO Hiroki [Sat, 2 Aug 2008 15:01:55 +0000 (00:01 +0900)]
remove pool

15 years agoremove pool
MIZUNO Hiroki [Sat, 2 Aug 2008 15:01:28 +0000 (00:01 +0900)]
remove pool

15 years agorefactoring cpool
MIZUNO Hiroki [Sat, 2 Aug 2008 14:31:02 +0000 (23:31 +0900)]
refactoring cpool

15 years agoadd ocamldoc
MIZUNO Hiroki [Sat, 2 Aug 2008 13:38:08 +0000 (22:38 +0900)]
add ocamldoc

15 years agoRefactoring Bytes module.
MIZUNO Hiroki [Sat, 2 Aug 2008 13:10:39 +0000 (22:10 +0900)]
Refactoring Bytes module.

- label_u30 function is not clearly. Replaced by block function.

15 years agoImprove Cpool.
MIZUNO Hiroki [Sun, 6 Jul 2008 03:38:21 +0000 (12:38 +0900)]
Improve Cpool.

Use janestreet-core's Set insted of List.

15 years agoadd make doc
MIZUNO Hiroki [Thu, 3 Jul 2008 14:01:55 +0000 (23:01 +0900)]
add make doc

15 years agochange README
MIZUNO Hiroki [Mon, 30 Jun 2008 00:12:19 +0000 (09:12 +0900)]
change README

15 years agoadd a reason for requiring OUINT
MIZUNO Hiroki [Mon, 30 Jun 2008 00:10:04 +0000 (09:10 +0900)]
add a reason for requiring OUINT

15 years agochange README: how to install extlib
MIZUNO Hiroki [Mon, 30 Jun 2008 00:08:58 +0000 (09:08 +0900)]
change README: how to install extlib

15 years agoSupport double
MIZUNO Hiroki [Mon, 23 Jun 2008 14:14:11 +0000 (23:14 +0900)]
Support double

- double literal(e.g. 42.1)
- add double operator(e.g. +. -. ,etc)

15 years agoadding double encode
MIZUNO Hiroki [Sun, 22 Jun 2008 14:03:00 +0000 (23:03 +0900)]
adding double encode

15 years agoadd #t/#f
MIZUNO Hiroki [Sun, 22 Jun 2008 09:20:51 +0000 (18:20 +0900)]
add #t/#f

15 years agorefactoring lexer
MIZUNO Hiroki [Sun, 22 Jun 2008 07:43:04 +0000 (16:43 +0900)]
refactoring lexer

15 years agouse pushbyte for small integer
MIZUNO Hiroki [Sun, 22 Jun 2008 07:36:32 +0000 (16:36 +0900)]
use pushbyte for small integer

15 years agoadd instruction: pushxxx
MIZUNO Hiroki [Sun, 22 Jun 2008 07:24:38 +0000 (16:24 +0900)]
add instruction: pushxxx

15 years agosplit rec-example.
MIZUNO Hiroki [Sat, 21 Jun 2008 08:25:41 +0000 (17:25 +0900)]
split rec-example.

rec.scm: check for supporting recursion by "letrec","define"
define-hidden: check if define has lexcical scope

15 years agoSupport define: hidden prev definition
MIZUNO Hiroki [Sat, 21 Jun 2008 08:17:44 +0000 (17:17 +0900)]
Support define: hidden prev definition

example:

 (define x 10)
 (define (f) x)
 (define x 20)

 (f) ;; -> 10

15 years agoadd rec example
MIZUNO Hiroki [Sat, 21 Jun 2008 04:47:24 +0000 (13:47 +0900)]
add rec example

15 years agoSupport letrec
MIZUNO Hiroki [Sat, 21 Jun 2008 04:39:11 +0000 (13:39 +0900)]
Support letrec

15 years agochange parser for letrec
mzp [Fri, 20 Jun 2008 02:03:50 +0000 (11:03 +0900)]
change parser for letrec

15 years agorearrange test_ast & add letrec test
mzp [Fri, 20 Jun 2008 01:59:49 +0000 (10:59 +0900)]
rearrange test_ast & add letrec test

15 years agochange "make count" to contain example/*.scm
mzp [Fri, 20 Jun 2008 01:23:03 +0000 (10:23 +0900)]
change "make count" to contain example/*.scm

15 years agoImprove makefile
mzp [Fri, 20 Jun 2008 01:20:24 +0000 (10:20 +0900)]
Improve makefile

- add count line target
- add some comment

15 years agorearrange .gitignore
mzp [Fri, 20 Jun 2008 01:15:14 +0000 (10:15 +0900)]
rearrange .gitignore

15 years agoImprove test result by adding newline
mzp [Fri, 20 Jun 2008 01:08:27 +0000 (10:08 +0900)]
Improve test result by adding newline

15 years agoignore MacOS X cache file(.DS_storewq)
MIZUNO Hiroki [Thu, 19 Jun 2008 14:45:35 +0000 (23:45 +0900)]
ignore MacOS X cache file(.DS_storewq)

15 years agoAdd example for recurtion (NOTE: not working NOW)
MIZUNO Hiroki [Thu, 19 Jun 2008 14:45:04 +0000 (23:45 +0900)]
Add example for recurtion (NOTE: not working NOW)

15 years agoImprove unittest result.
MIZUNO Hiroki [Thu, 19 Jun 2008 14:42:08 +0000 (23:42 +0900)]
Improve unittest result.

old:
  OUnit: expected: ("", 0, 0, 0, [15; 17; Tag17 (1); Tag17 (2); 29; 5], 0, 0) but got: ("", 0, 0, 0, [15; 17; Tag17 (1); Tag17 (3); 29; 5], 0, 0)

new:
  OUnit: instructions
  expected: [ GetLocal_0(); PushScope(); PushInt(1); PushInt(2); Add_i(); ReturnValue() ] but got: [ GetLocal_0(); PushScope(); PushInt(1); PushInt(3); Add_i(); ReturnValue() ]

15 years agonew exampe
MIZUNO Hiroki [Sun, 15 Jun 2008 06:26:19 +0000 (15:26 +0900)]
new exampe

15 years agoChange ast for function call
MIZUNO Hiroki [Sun, 15 Jun 2008 06:25:07 +0000 (15:25 +0900)]
Change ast for function call

We support following form:

 ((lambda (x) (+ x 1)) 1)

15 years agoSupport closure!!
MIZUNO Hiroki [Sun, 15 Jun 2008 06:02:17 +0000 (15:02 +0900)]
Support closure!!

Support closure which use arguments.

  (define (f x)
     (lambda () x))

15 years agoadd comment
MIZUNO Hiroki [Sun, 15 Jun 2008 04:44:54 +0000 (13:44 +0900)]
add comment

15 years agoRefactoring ast module
MIZUNO Hiroki [Sun, 15 Jun 2008 04:42:58 +0000 (13:42 +0900)]
Refactoring ast module

15 years agochange testcase
MIZUNO Hiroki [Sat, 14 Jun 2008 23:48:35 +0000 (08:48 +0900)]
change testcase

15 years agosupport closure
MIZUNO Hiroki [Sat, 14 Jun 2008 23:30:24 +0000 (08:30 +0900)]
support closure

15 years agomoved
MIZUNO Hiroki [Sat, 14 Jun 2008 23:26:54 +0000 (08:26 +0900)]
moved

15 years agobugfix: extra method
MIZUNO Hiroki [Sat, 14 Jun 2008 05:42:53 +0000 (14:42 +0900)]
bugfix: extra method

15 years agoChange scope management
MIZUNO Hiroki [Sat, 14 Jun 2008 04:57:35 +0000 (13:57 +0900)]
Change scope management

16 years agoadd newactivation
mzp [Fri, 6 Jun 2008 02:28:59 +0000 (11:28 +0900)]
add newactivation

16 years agoadd example
mzp [Fri, 6 Jun 2008 02:00:56 +0000 (11:00 +0900)]
add example

16 years agomidstream of supporting closure(NOT COMPLETE)
mzp [Thu, 5 Jun 2008 09:27:52 +0000 (18:27 +0900)]
midstream of supporting closure(NOT COMPLETE)

16 years agorename 'concatMap' to 'concat_map'
MIZUNO Hiroki [Wed, 4 Jun 2008 14:09:00 +0000 (23:09 +0900)]
rename 'concatMap' to 'concat_map'

16 years agoRemove a few member of ast.
MIZUNO Hiroki [Wed, 4 Jun 2008 14:06:38 +0000 (23:06 +0900)]
Remove a few member of ast.

- I realize that binary operator equals function application. So I changed following:

  before:
    Add (Int 1,Int 2)

  after:
    Call ("+",[Int 1; Int 2])