GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - smlsharp/SMLFormat

BranchesTags
Open more actions menu

Latest commit

 

History

103 Commits
103 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
cmtool
cmtool
 
 
doc
doc
 
 
example
example
 
 
formatlib
formatlib
 
 
generator
generator
 
 
obj
obj
 
 
script
script
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile.in
Makefile.in
 
 
Makefile.mlton
Makefile.mlton
 
 
Makefile.polyml
Makefile.polyml
 
 
Makefile.smlnj
Makefile.smlnj
 
 
README.txt
README.txt
 
 
Readme.md
Readme.md
 
 
SMLNJ_LICENSE
SMLNJ_LICENSE
 
 
configure
configure
 
 
smlformat-lib.cm
smlformat-lib.cm
 
 
smlformat-lib.mlb
smlformat-lib.mlb
 
 
smlformat-lib.smi
smlformat-lib.smi
 
 
smlformat-lib.sml
smlformat-lib.sml
 
 
smlformat.cm
smlformat.cm
 
 
smlformatlib.cm
smlformatlib.cm
 
 
smlformatlib.mlb
smlformatlib.mlb
 
 
smlformatlib.smi
smlformatlib.smi
 
 
smlformatlib.sml
smlformatlib.sml
 
 

Repository files navigation

SMLFormat: Pretty Printer for SML

This is unofficial repository for SMLFormat distribution.

What is this

This repository is salvaged from the official SMLFormat distribution (included in SML# 0.90 compiler distribution). The SMLFormat consists of two components:

  • smlformat-lib is a pretty printer library for SML.
  • smlformat is a pretty printer generator for SML.

What is not this

  • This is not official repository.

Dependencies

  • mllex (mllex-polyml for Poly/ML)
  • mlyacc and mlyacc-lib (mlyacc-polyml for Poly/ML)
  • smlnj-lib (smlnj-lib-polyml for Poly/ML)
  • smlunit-lib (unit test)
  • smldoc (documentations)

Support platforms

  • SML#

    Tested 1.0.0

  • SML/NJ

    Tested 110.97, 110.98.1

  • MLton

    Tested 20130715

  • Poly/ML

    Tested 5.8.1

SML#

Build

Firstly, execute ./configure script and then make.

$ ./configure
$ make

Install

smlformat and formatlib are installed with install target:

$ make install

Doc

doc target generates api documents to doc/api. This target requires SMLDoc.

$ make doc

SML/NJ

Build

To build SMLFormat, run the default target of Makefile.smlnj.

$ make -f Makefile.smlnj

The default target generates smlformat, smlformat-lib, smlformatlib for backword compatibility, ppg-ext and smlformat-tool and documentations of the SMLFormat api. If you do not need the documentations, run the smlformat-nodoc target.

$ make -f Makefile.smlnj smlformat-nodoc

Install

To install smlformat, run the install target.

$ make -f Makefile.smlnj install

To change the installation directory, specify PREFIX:

$ make -f Makefile.smlnj install PREFIX=~/.sml/smlnj/110.99

If you do not need the documentations, run the install-nodoc target.

$ make -f Makefile.smlnj install-nodoc

Doc

To generate the documentations of SMLFormat, run the doc target.

$ make -f Makefile.smlnj doc

Test

To run the unit tests, run the test target.

$ make -f Makefile.smlnj test

Example

To build examples, run the example target.

$ make -f Makefile.smlnj example

MLton

Build

To build smlformat, run the default target of Makefile.mlton.

$ make -f Makefile.mlton

The default target generates smlformat and documentations of the SMLFormat api, and type checks smlformat-lib and smlformatlib for backword compatibility. If you do not need the documentations, run the smlformat-nodoc target.

$ make -f Makefile.mlton smlformat-nodoc

Install

To install smlformat, run the install target.

$ make -f Makefile.mlton install

To change the installation directory, specify PREFIX:

$ make -f Makefile.mlton install PREFIX=~/.sml/mlton

If you do not need the documentations, run the install-nodoc target.

$ make -f Makefile.mlton install-nodoc

After installation, you need to add an entry to a mlb path mapping file:

$ echo 'SMLFORMAT_LIB $PREFIX/lib/SMLFormat' >> /path/to/mlb-path-map

Doc

To generate the documentations of SMLFormat, run the doc target.

$ make -f Makefile.mlton doc

Test

To run the unit tests, run the test target. The unit tests require SMLUnit. Makefile.mlton searches mlb-path-map file on PREFIX directory automatically.

$ make -f Makefile.mlton test

If your path map file could not been found, you need to specify the path to your path map file.

$ grep SMLUNIT_LIB /path/to/mlb-path-map
SMLUNIT_LIB /path/to/SMLUnit
$ make -f Makefile.mlton MLB_PATH_MAP=/path/to/mlb-path-map test

Example

To build examples, run the example target.

$ make -f Makefile.mlton example

Poly/ML

Build

To build smlformat and smlformat-lib, run the default target of Makefile.polyml.

$ make -f Makefile.polyml

When some dependencies are not found, specify PREFIX or LIBDIR:

$ make -f Makefile.polyml install PREFIX=~/.sml/polyml/5.8.1

The default target generates smlformat, smlformat-lib and it's documentations. If you do not need the documentations, run the smlformat-nodoc and the smlformat-lib-nodoc targets.

$ make -f Makefile.polyml smlformat-nodoc

Install

To install smlformat and smlformat-lib, run the install target.

$ make -f Makefile.polyml install

If you do not need the documentations, run the install-nodoc target.

$ make -f Makefile.polyml install-nodoc

Doc

To generate the documentations of smlformat-lib, run the doc target.

$ make -f Makefile.polyml doc

Test

To run the unit tests, run the test target.

$ make -f Makefile.polyml test

Example

To build examples, run the example target.

$ make -f Makefile.polyml example

License

This software has been developed as a part of the SML# project. It is distributed under the BSD-style SMLSharp license, which is included in the file LICENSE in this directory.

For the details of SML# project, consult the web page at: http://www.pllab.riec.tohoku.ac.jp/smlsharp/

Author

YAMATODANI Kiyoshi @2010, Tohoku University.

About

No description, website, or topics provided.

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

4 stars

Watchers

5 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.