Re: list of syntactic forms?

"Mike J. Bell" <[email protected]> Thu, 22 Jan 2009 19:17:02 -0500
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
--===============7188208610521307580==
Content-Type: multipart/alternative; boundary=0015174bdfd8e4197804611b4ee0

--0015174bdfd8e4197804611b4ee0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Super, that's it!  Thanks!

Mike

On Thu, Jan 22, 2009 at 5:51 PM, Scott G. Miller <[email protected]> wrote:

> I believe this is what you want.  Obviously non-portable:
>
> (get-sidecar-environment '*sc-expander* (interaction-environment))
>
> On Thu, Jan 22, 2009 at 1:08 PM, Mike J. Bell <[email protected]> wrote:
>
>> I'm trying to implement a rudimentary code-completion for a SISC
>> REPL/console that I embedded in our program.  I found a nice example snippet
>> somewhere that basically shows if I eval "(interaction-environment)" it
>> gives me back a MemorySymEnv, which has a symbolMap which provides me all
>> the symbols that are defined at the current toplevel.  Of course I'm messing
>> with internal SISC architecture stuff but that's OK, this doesn't need to be
>> portable and I can adapt to future changes.
>>
>> This is great and all, but I don't have syntax, like "define" and "and"
>> etc. etc.  All macros are missing in that symbol map because those symbols
>> are part of syntax, not the environment.
>>
>> Does anyone know a way (non-portable is fine) to get a similar list of
>> syntactic forms?
>>
>> Thanks in advance!
>> Mike
>>
>> --
>> Mike J. Bell on gmail
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Sisc-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sisc-users
>>
>>
>


-- 
Mike J. Bell on gmail

--0015174bdfd8e4197804611b4ee0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Super, that&#39;s it!&nbsp; Thanks!<br><br>Mike<br><br><div class=3D"gmail_=
quote">On Thu, Jan 22, 2009 at 5:51 PM, Scott G. Miller <span dir=3D"ltr">&=
lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt;</span> =
wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I believe this is=
 what you want.&nbsp; Obviously non-portable:<br><br>(get-sidecar-environme=
nt &#39;*sc-expander* (interaction-environment))<br>
<br><div class=3D"gmail_quote"><div><div></div><div class=3D"Wj3C7c">On Thu=
, Jan 22, 2009 at 1:08 PM, Mike J. Bell <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wr=
ote:<br>

</div></div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px sol=
id rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>=
<div></div><div class=3D"Wj3C7c">I&#39;m trying to implement a rudimentary =
code-completion for a SISC REPL/console that I embedded in our program.&nbs=
p; I found a nice example snippet somewhere that basically shows if I eval =
&quot;(interaction-environment)&quot; it gives me back a MemorySymEnv, whic=
h has a symbolMap which provides me all the symbols that are defined at the=
 current toplevel.&nbsp; Of course I&#39;m messing with internal SISC archi=
tecture stuff but that&#39;s OK, this doesn&#39;t need to be portable and I=
 can adapt to future changes.<br>


<br>This is great and all, but I don&#39;t have syntax, like &quot;define&q=
uot; and &quot;and&quot; etc. etc.&nbsp; All macros are missing in that sym=
bol map because those symbols are part of syntax, not the environment.<br><=
br>


Does anyone know a way (non-portable is fine) to get a similar list of synt=
actic forms?<br><br>Thanks in advance!<br>Mike<br clear=3D"all"><font color=
=3D"#888888"><br>-- <br>Mike J. Bell on gmail<br>
</font><br></div></div>----------------------------------------------------=
--------------------------<br>
This SF.net email is sponsored by:<br>
SourcForge Community<br>
SourceForge wants to tell your story.<br>
<a href=3D"http://p.sf.net/sfu/sf-spreadtheword" target=3D"_blank">http://p=
.sf.net/sfu/sf-spreadtheword</a><br>_______________________________________=
________<br>
Sisc-users mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">Sisc-=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/sisc-users" target=
=3D"_blank">https://lists.sourceforge.net/lists/listinfo/sisc-users</a><br>
<br></blockquote></div><br>
</blockquote></div><br><br clear=3D"all"><br>-- <br>Mike J. Bell on gmail<b=
r>

--0015174bdfd8e4197804611b4ee0--


--===============7188208610521307580==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
--===============7188208610521307580==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Sisc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisc-users

--===============7188208610521307580==--