OpenModelica / OMJulia.jl

Julia scripting OpenModelica interface
BSD 3-Clause "New" or "Revised" License
37 stars 13 forks source link

Upgrade lexer to Automa.jl v1.0 #125

Open AnHeuermann opened 2 months ago

AnHeuermann commented 2 months ago

Description

The lexer lexer.jl was generated with Julia v.16 (or lower) and Automa.jl v0.7 (or something around that version).

We should update to Automa.jl v1 and add a workflow to check if lexer.jl is up to date.

Related issues

To update the lexer for #123 we should update Automa.jl.

AnHeuermann commented 1 month ago

@JKRT I'm struggling to update to Automa.jl v1.0. A new requirement is, that the regex language needs to be without any ambiguities, see https://biojulia.dev/Automa.jl/stable/tokenizer/#Token-disambiguation. So for example how to tell if fal will be Boolean false or class name falsomethingSomething.

Maybe you have some idea since you are working with lexers as well.