Re: Early fruits of my labour



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!

.



Relevant Pages

  • RE: Visual Studio Macros do nothing when run
    ... Thank you for contacting Microsoft Online Support Service. ... you indicated that your Visual Studio 2005 macro doesn't run ... On Windows 2000, XP and 2003 systems, a CAB file will be generated ... The Filemon and Regmon utilities can be free downloaded from these web ...
    (microsoft.public.vsnet.general)
  • Re: Calling a Excel function from VB
    ... automates/calls an Excel macro. ... The method "CopyComps" should be in a Module of the workbook. ... Microsoft Excel Object Library). ... Microsoft Online Community Support ...
    (microsoft.public.vb.general.discussion)
  • Re: Calling a Excel function from VB
    ... automates/calls an Excel macro. ... The method "CopyComps" should be in a Module of the workbook. ... Microsoft Excel Object Library). ... Microsoft Online Community Support ...
    (microsoft.public.vb.general.discussion)
  • RE: What is the Excel equivilent of...
    ... to be used to preserve macro settings in between macro sessions. ... In Excel, we do not have the similar session issue. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: Reading binary files to ascii - BOUNDARY.mcr (0/1)
    ... >I need to read the file in VB and save as ascii. ... Are you by chance dealing with a macro file for DataCAD? ... 11 output units for distance ... We customized our Alt-W keyboard macro to go ...
    (microsoft.public.vb.general.discussion)