Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antlr4ts cli's -o option is wrong affected by the grammar file option #533

Open
alingse opened this issue Jun 10, 2022 · 0 comments
Open

Comments

@alingse
Copy link

alingse commented Jun 10, 2022

截屏2022-06-10 下午9 34 03

The command

node_modules/.bin/antlr4ts ../Thrift.g4 -o ./src 

I want to generate code to ./src from the grammar file ../Thrift.g4

but it wrong generate code like this.

Generating file 'thrift-parser/typescript/./src/../ThriftLexer.interp' for grammar '../Thrift.g4'
Generating file 'thrift-parser/typescript/./src/../ThriftLexer.ts' for grammar '../Thrift.g4'
Generating file 'thrift-parser/typescript/./src/../ThriftLexer.tokens' for grammar '../Thrift.g4'
Generating file 'thrift-parser/typescript/./src/../Thrift.interp' for grammar '../Thrift.g4'
Generating file 'thrift-parser/typescript/./src/../ThriftParser.ts' for grammar '../Thrift.g4'
Generating file 'typescript/./src/../ThriftListener.ts' for grammar '../Thrift.g4'
Generating file 'typescript/./src/../Thrift.tokens' for grammar '../Thrift.g4'

thers is no need to add '../' to output option

I will open a PR to edit this 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@alingse and others