From owner-acpi-jp@jp.freebsd.org  Sun Nov 26 01:06:26 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA62148;
	Sun, 26 Nov 2000 01:06:26 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (daemon@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id BAA62139
	for <acpi-jp@jp.freebsd.org>; Sun, 26 Nov 2000 01:06:24 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92])
	by tasogare.imasy.or.jp (8.10.2+3.3W/3.7W-tasogare/smtpfeed 1.07) with ESMTP id eAPG6Kq80317
	for <acpi-jp@jp.freebsd.org>; Sun, 26 Nov 2000 01:06:20 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
To: acpi-jp@jp.freebsd.org
X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <20001126010620I.iwasaki@jp.FreeBSD.org>
Date: Sun, 26 Nov 2000 01:06:20 +0900
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
X-Dispatcher: imput version 20000228(IM140)
Lines: 91
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 917
Subject: [acpi-jp 917] ASL compiler development?
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

[I'm writing this message both in English and Japanese.]

Does anyone know any freely available ASL compiler source code for UNIX?
Or interested in ASL compiler development?
I've just started writing the very small parser by using yacc and lex.
If anyone is interested in this work, I'll put the code at somewhere.

$BC/$+(B UNIX $BMQ$N(B ASL $B%3%s%Q%$%i$N%=!<%9%3!<%I$G<+M3$KF~<j2DG=$J$d$DCN$j$^$;$s$+(B?
$B$"$k$$$O3+H/$K6=L#$N$"$k?M$O$$$^$;$s$+(B?
$BD6%7%s%W%k$J(B parser $B$r(B yacc $B$H(B lex $B$G=q$-;O$a$?$H$3$m$@$C$j$7$^$9!#(B
$B6=L#$N$"$k?M$,$$$l$P%3!<%I$r$I$3$+$KCV$-$^$9!#(B

% ./aslc -d test.asl
==== PARSER PHASE 1 ====
test.aml:	String:	at line 4
DSDT:	String:	at line 5
0x1:	ByteConst:	at line 6
IWASAK:	String:	at line 7
MITSUR:	String:	at line 8
0x19990528:	DWordConst:	at line 9
DefinitionBlock ("test.aml", "DSDT", 0x1, "IWASAK", "MITSUR", 0x19990528)
<====	ASLTermList
0x14:	Method:	at line 13
<PkgLength>
	NameString<GBFE>:	at line 13
0x47:	G
0x42:	B
0x46:	F
0x45:	E
0x3:	ByteConst:	at line 13
<==	Method(GBFE, 0x3, 0x0)
0x8c:	CreateByteField:	at line 15
0x68:	Arg0:	at line 15
0x69:	Arg1:	at line 15
	NameString<TIDX>:	at line 15
0x54:	T
0x49:	I
0x44:	D
0x58:	X
0x70:	Store:	at line 16
	NameString<TIDX>:	at line 16
0x54:	T
0x49:	I
0x44:	D
0x58:	X
0x6a:	Arg2:	at line 16
==>	Method(GBFE)
0x14:	Method:	at line 19
<PkgLength>
	NameString<AAAA>:	at line 19
0x41:	A
0x41:	A
0x41:	A
0x41:	A
<==	Method(AAAA, 0x0, 0x0)
0x70:	Store:	at line 21
0x11:	Buffer:	at line 21
<PkgLength>
<==	Buffer
<BufferSize>
0x1:	ByteConst:	at line 21
0x2:	ByteConst:	at line 21
0x3:	ByteConst:	at line 21
0x4:	ByteConst:	at line 21
==>	Buffer
0x60:	Local0:	at line 21
0x70:	Store:	at line 22
0x3:	ByteConst:	at line 22
0x61:	Local1:	at line 22
0xa2:	While:	at line 23
<PkgLength>
<==	While
0x61:	Local1:	at line 23
	NameString<GBFE>:	at line 24
0x47:	G
0x42:	B
0x46:	F
0x45:	E
0x60:	Local0:	at line 24
0x61:	Local1:	at line 24
0x71:	RefOf:	at line 24
0x62:	Local2:	at line 24
0x76:	Decrement:	at line 25
0x61:	Local1:	at line 25
==>	While
==>	Method(AAAA)
====>	ASLTermList
SYMTAB: GBFE(0)
SYMTAB: TIDX(1)
SYMTAB: AAAA(0)
==== PARSER PHASE 2 ====
