Re: Early fruits of my labour
- From: Chewy509@xxxxxxxxxxxxxxxx
- Date: 8 May 2005 18:24:26 -0700
Alex McDonald wrote:
> Interesting project! Two things came to mind when reading it;
>
> . Have you looked at something like a macro preprocessor like m4?
> Instead of compiling if/then/else or higher level constructs like
> while, they could be macro generated; the benefit is that the macro
> definition is programmer visible and modifiable/extendable.
I have, but it's something else to deal with, that being honest, if I
don't have to deal with it, I won't. (And I don't mind re-inventing the
wheel). Creating B0 for me is as much about learning how to make a
compiler (from scratch), as it is about creating a new language.
> . Why UTF-16? Would UTF-8 not give you what you need? It's backwardly
> compatible with ASCII, and as your base doesn't use anything that's
not
> ASCII, it might be easier to support with standard editors.
At the moment, it only supports ASCII source, however there are heavy
consideration for UTF-16 source to be implemented shortly.
For reasons why UTF-16, look through the thread called "Unicode"
started by me in this NG, not that long ago.
The one thing that may hamper that ambition, is the lack of support in
regards to C and its supporting libraries (B0 for the moment is
implemented in C). On Windows, it's fine (MS VC++ provides everything I
need), but it's *nix that I am concerned about (gcc + glibc).
It's something that I have to look at more. However as a bare minimum,
I will allow comments and strings to be UTF-8, while identifiers/labels
and operators are restricted to ASCII (eg _,0..9,a..z,A..Z).
--
Darran (aka Chewy509) brought to you by Google Groups!
.
- References:
- Early fruits of my labour
- From: Chewy509
- Re: Early fruits of my labour
- From: Alex McDonald
- Early fruits of my labour
- Prev by Date: Re: RosAsm Crashes
- Next by Date: Re: Early fruits of my labour
- Previous by thread: Re: Early fruits of my labour
- Next by thread: Re: Early fruits of my labour
- Index(es):
Relevant Pages
|