LangTrans
  • Welcome to LangTrans
  • Implementation
  • Command Line
  • Getting Started
  • Downloads
Powered by GitBook
On this page
  • Usage
  • Compile
  • Run
  • Options
  • Docs for token extraction file

Was this helpful?

Edit on GitHub

Command Line

PreviousImplementationNextGetting Started

Last updated 1 year ago

Was this helpful?

Usage

py langtrans.py <SoureFileName> <OutputFileName> <SyntaxRepr> <PatternRepr>

SourceFileName - File name of the source code written with new syntax

OutputFileName - File name of the source code you want to generate with original syntax

SyntaxRepr - File name of YAML file for without extension(.yaml)

PatternRepr - File name of YAML file with of original language without extension

Compile

py langtrans.py -c <SyntaxRepr> <PatternRepr> <compfile>

compfile

Name of the compiled file(without extension)

filename.ltz will be generated.

Run

py langtrans.py -f <SoureFileName> <OutputFileName> <compfile>

Options

  • -h - For help

  • -v - Verbose mode

  • -y - To execute ‘after’ command automatically

  • -n - To exit without executing ‘after’ command

Docs for token extraction file

py langtrans.py -d <SyntaxRepr> > filename.txt

To generate documentation for file

token extraction
template
token extraction