mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
26 lines
664 B
Plaintext
26 lines
664 B
Plaintext
# Copyright (C) Vladimir Prus 2002. Permission to copy, use, modify, sell and
|
|
# distribute this software is granted provided this copyright notice appears in
|
|
# all copies. This software is provided "as is" without express or implied
|
|
# warranty, and with no claim as to its suitability for any purpose.
|
|
|
|
import type ;
|
|
import generators ;
|
|
import feature ;
|
|
import property ;
|
|
import print ;
|
|
|
|
type.register LEX : l ;
|
|
|
|
generators.register-standard lex.lex : LEX : C ;
|
|
|
|
rule lex ( targets * : sources * : properties * )
|
|
{
|
|
print.output $(<) ;
|
|
# Need to supress SunCC's warning about empty source
|
|
# file.
|
|
print.text "void foo() {}" ;
|
|
}
|
|
|
|
actions lex
|
|
{
|
|
} |