Paste: literal-parse

Author: dharmatech
Mode: factor
Date: Sat, 15 Nov 2008 12:00:41
Plain Text |
USING: kernel
       lexer
       parser
       namespaces
       literal-syntax
       ;

IN: literal-parse

: parse-with-vocabs ( vocabs lines -- quot )
  [
    f in set
    swap set-use
    lexer-factory get call (parse-lines)
  ]
  with-scope ;

: literal-parse ( lines -- quot ) { "literal-syntax" } swap parse-with-vocabs ;

New Annotation

Summary:
Author:
Mode:
Body: