I'm evaluating the possibilities to track tool movement using nc programs in different formats as input. Using a lexer to tokenize the different program types into a meta layer, where only uniform tools and points, etc. exist seemed like a good idea.
But,
- I don't know anything about lexical analysis. Is there an easy way to create a lexer? Maybe out of an EBNF?
- What do you think about my approach, do you see a more viable way to extract the data and support multiple nc file formats?
Additional information
- The information on which concrete type of NC program is provided is known beforehand.
- I don't have to check the syntax of the NC program. I assume that they are valid, since they are already used in production.