> For the complete documentation index, see [llms.txt](https://bijinregipanicker.gitbook.io/langtrans/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bijinregipanicker.gitbook.io/langtrans/command-line.md).

# Command Line

## Usage

```bash
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 [token extraction](/langtrans/implementation.md#token-extraction) without extension(.yaml)

**PatternRepr** - File name of YAML file with [template](/langtrans/implementation.md#template) of original language without extension

### **Compile**

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

**compfile**

Name of the compiled file(without extension)

`filename.ltz` will be generated.

### **Run**

```bash
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**

To generate documentation for [token extraction](/langtrans/implementation.md#syntax) file

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bijinregipanicker.gitbook.io/langtrans/command-line.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
