Skip to content
/ cmlex Public
forked from codeon/cmlex

CM-Lex: A lexer generator for Standard ML and Haskell

Notifications You must be signed in to change notification settings

RedPRL/cmlex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CM-Lex: A lexer generator for Standard ML and Haskell

This is RedPRL's fork of CM-Lex. The only difference is that we do not build with Smackage; Smackage can be a nice tool for local and non-collaborative development, but we are principally concerned with having build environments that do not require complicated setup processes, and which can easily be reproduced on remote continuous integration servers like Travis.

By keeping all code in-repository (using submodules), it is possible to achieve a simple and reproducible build that requires no extra tools except those which come with the two principal Standard ML distributions (SML/NJ and MLton).

Installing

First, ensure that CM-Lex's submodules are up to date:

$ git submodule update --init --recursive

To install CM-Lex (for Standard ML)

$ make mlton (or smlnj or win+smlnj)
$ make install DESTDIR=/usr/local/ # for example
$ cmlex
Error: not enough input files
Usage: cmlex file.cmlex [-o file.sml]
(Default output file is file.cmlex.sml)

To install CM-Lex-HS (for Haskell)

$ make mlton+hs (or smlnj+hs or win+smlnj+hs)
$ make install+hs DESTDIR=/usr/local/ # for example
$ cmlex
Error: not enough input files
Usage: cmlex-hs file.cmlex [-o file.hs]
(Default output file is file.cmlex.hs)

About

CM-Lex: A lexer generator for Standard ML and Haskell

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Standard ML 96.0%
  • Haskell 3.4%
  • Other 0.6%