Comments (6)
IIRC, it should already be using a relative path which should be stable. The current version is 1.8.2 -- does it happen with that as well?
from jflex.
Unfortunately I can't check, because we are using patched version of jflex. Could you please point me to the piece of code responsible for that? I tried to look yesterday, but couldn't find it :(
Does it use same slashes on windows/non-windows?
from jflex.
The code is this here
jflex/jflex/src/main/java/jflex/generator/Emitter.java
Lines 407 to 414 in eb81a29
which is called in emitHeader
:
jflex/jflex/src/main/java/jflex/generator/Emitter.java
Lines 416 to 421 in eb81a29
In 1.7.0, emitHeader
isn't in its own function yet, but if you search for generated by
in Emitter.java
you should find it. If you're using a patched version anyway, you could just delete that line that emits the source file name.
from jflex.
Thank you!!!
from jflex.
I'll leave this open as possible enhancement, because we probably still get different versions of the path in current versions depending on the platform the lexer was generated on.
from jflex.
Closing this, because in 1.8.2 JFlex does already normalise the path to slashes, i.e. the output should not depend on the host OS.
from jflex.
Related Issues (20)
- UnicodeCaseless.flex.vm uses incorrect unicode escapes HOT 1
- add test cases for warn/no-warn options
- optimisation: factor out common prefixes in large alternatives
- provide mechanism for annotations on lexer function
- investigate Windows test runners for CI
- matrix for bazel build
- Whitespaces negation in group not working as expected HOT 4
- jflex-maven-plugin 1.9.0/1 are missing from maven central HOT 1
- Generation aborted HOT 1
- Trailing-context is not working HOT 3
- improve error reporting for lookahead in macros HOT 2
- potential ArrayIndexOutOfBounds in zzRefill
- generated-class.md missing from manual published on website HOT 4
- Unexpected dump? HOT 7
- Unexpected exception encountered in JFlex HOT 3
- char class directives delete existing classes HOT 1
- replace inefficient java regexps with jflex scanner HOT 1
- properly implement clone interface on JFlexAntTask
- allow length-1 expressions in char classes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jflex.