LexCheck

  • Descriptions:
    Checks the syntax of lexical records and generates text, xml output, or input format for LexBuild/LexAccess database from a text input file. Error messages will be generated if there are errors.

  • Usage:
    Synopsis:
    LexCheck [options]
    
    Description:
    Validates text syntax in LexRecords and convert them among text, Xml, and Java objects from an input file.
    
    Options:
    -d:     Print syntax validation debug message
    -f:b    Print lexical records in LexBuild input format
    -f:t    Print lexical records in text format
    -f:tx   Print lexical records in text and Xml format
    -f:x    Print lexical records in Xml format
    -f:nxh   Print Xml header with version information
    -h      Print program help information (this is it).
    -hs     Print option's hierarchy structure.
    -i:STR  Define input file
    -o:STR  Define output file
    -v:     Return the current version identification of LexCheck
    -x:STR  Loading an alternative configuration file.
    

  • Inputs:
    lexical records file in text format

  • Outputs:
    • lexical record in text format
    • lexical record in xml format
    • Error message if any

  • Notes:
    • Must include lexCheck${YEAR}dist.jar (for LVG and XML APIs)
    • Benchmark run time for Lexicon: 5 ~ 10 sec.

  • Examples:
    • shell> LexCheck -i:LEXICON (check the Lexicon file and sent output to screen)
    • shell> LexCheck -f:x -i:in.txt (send output in Xml format to screen)

Test