diff options
author | Sunil Shetye | 2018-06-18 16:49:04 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-18 16:49:04 +0530 |
commit | 9ec3440a22a800ed2d22687411d1fc483703c186 (patch) | |
tree | 5eb93f6254532c96cd3a7c347faf3db5c5a5247d /sci2jslex.py | |
parent | e6afdd8a122a9c029b21d6410803587a9e1e833c (diff) | |
download | sci2js-9ec3440a22a800ed2d22687411d1fc483703c186.tar.gz sci2js-9ec3440a22a800ed2d22687411d1fc483703c186.tar.bz2 sci2js-9ec3440a22a800ed2d22687411d1fc483703c186.zip |
add documentation
Diffstat (limited to 'sci2jslex.py')
-rwxr-xr-x | sci2jslex.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sci2jslex.py b/sci2jslex.py index 1bd140af..ed8bdb18 100755 --- a/sci2jslex.py +++ b/sci2jslex.py @@ -1,5 +1,14 @@ #!/usr/bin/python +""" +Parse a .sci file and split it into tokens. This file is used indirectly +through sci2jsyacc.py (except for debugging purposes). + +Usage: ./sci2jslex.py filename.sci > filename.lex + +Example: ./sci2jslex.py macros/Sinks/CSCOPE.sci > js/Sinks/CSCOPE.lex +""" + from __future__ import print_function import ply.lex as lex |