2017-02-24 01:31:24 +00:00
|
|
|
This is a version 0.76.4 of NYACC (Not Yet Another Compiler Compiler!).
|
2016-12-26 07:05:00 +00:00
|
|
|
|
2017-01-11 02:56:00 +00:00
|
|
|
Copyright (C) 2015-2017 Matthew R. Wette
|
2016-12-26 07:05:00 +00:00
|
|
|
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
notice and this notice are preserved. This file is offered as-is,
|
|
|
|
without any warranty.
|
|
|
|
|
2017-01-11 02:56:00 +00:00
|
|
|
Full source distribution for NYACC is available at
|
2017-01-17 13:50:45 +00:00
|
|
|
https://download.savannah.gnu.org/projects/nyacc
|
2017-01-11 02:56:00 +00:00
|
|
|
|
2016-12-26 07:05:00 +00:00
|
|
|
This software package is covered by the following licenses:
|
|
|
|
* GNU PUBLIC GENERAL LICENCE, version 3 (See COPYING.)
|
|
|
|
* GNU LESSER PUBLIC GENERAL LICENCE, version 3 (See COPYING.LESSER.)
|
|
|
|
* GNU Free Documentation License, version 1.3 (See doc/nyacc/COPYING.DOC.)
|
|
|
|
|
|
|
|
There is an incomplete manual in doc/nyacc/.
|
|
|
|
|
|
|
|
There is a demo program calc.scm in examples/nyacc/lang/calc. Easy starter:
|
|
|
|
$ cd examples/nyacc/lang/calc
|
|
|
|
$ ./calc
|
|
|
|
2 + 2 => 4
|
|
|
|
|
|
|
|
The module code is in module/nyacc. Modules are imported as follows:
|
|
|
|
(use-modules (nyacc lalr))
|
|
|
|
(use-modules (nyacc lex))
|
|
|
|
|
|
|
|
If you have a personal guile directory then you can copy modules/nyacc
|
|
|
|
to that directory. To install in the global guile distribution:
|
|
|
|
user$ sudo -s
|
|
|
|
root# cd module
|
|
|
|
root# make -f Makefile.nyacc install
|
|
|
|
root# exit
|
|
|
|
user$
|
|
|
|
|
|
|
|
The syntax and nomenclature should be considered not stable.
|
|
|
|
|