[GoLUG] [parse] My first stab at Backus-Naur Form

David Billsbrough kc4zvw at earthlink.net
Mon Nov 13 14:08:53 EST 2023


Original Message:
Once upon a time: Steve Litt <slitt at tro.....> wrote:

> Hi all,

> I'm trying to form a Backus-Naur form for my Stylz authoring language.
> Stylz is simply a text file with paragraphs separated by one or more
> blank lines and interspersed with various tokens to grant various
> document constructs and styles. It will be constructed for fast
> authoring, with all tokens required to be lower case plus punctuation.

> So far I have:

   { ... trimmed ... }

I guess I have started also:

%%% short list of goals

 1.  Never try to replace: FreeBASIC (fbc) or FreePascal (fpc) or Perl/Ruby/Python/Lua 5
 2.  Priority of coding : a. works; b: readable; c: not to big/bloated; d: sort of fast  (in that order)
 3.  Port my 'calculator' code and  and then a 'Tiny Pascal' compiler  (front end) and an assembly source back-end.
 4.  What the "backend" is defined as is: NASM code for (amd86/x86_64) /GNU asm (as) for ARM, Risc5, Atmel-8bit, #Raspi, etc  .... TI-430 (unknown), Z80 (unknown)?
 5.  Seriously try to make 6 month progress, with docs showing each months progress going though the online docs (that I have already found)
 6.  Break these tasks in to 5 well defined steps (with defined objective in each phase)


Phase I:  build a working calculator

  (a.k.a.  Learn how to parse!)

  Parse: fpc code (called cradle) -- document: LET'S BUILD A COMPILER! -- Copyright (C) 1988 Jack W. Crenshaw. 

So, I guess I have officially started.


regards,

David

-- David Billsbrough -- Amateur Radio Callsign: KC4ZVW
Chuluota, Florida * grid square: EL98kp * https://www.kc4zvw.us/
ARRL * AVR * BeagleBone * FreeBSD * Linux * PICmicro * RASPI * TAPR





More information about the GoLUG mailing list