Rosemoe / sora-editor

A multifunctional Android code editor library. (aka CodeEditor)
GNU Lesser General Public License v2.1
971 stars 151 forks source link

Add OCaml language #52

Closed nathanfallet closed 2 years ago

nathanfallet commented 3 years ago

Hello there, I would like to add support for OCaml language to this editor. I already have a lexer for this language written in Swift here: https://github.com/GroupeMINASTE/OCaml-iOS/blob/main/OCaml/Models/OCamlLexer.swift I saw the wiki, I will try to make a PR in coming weeks to implement this language myself.

Rosemoe commented 3 years ago

Thanks for your contributions!

nathanfallet commented 3 years ago

@Rosemoe Is there any way to generate the language plugin if we have some grammar files? I saw how it is implemented for python, java, etc... and it seems to be very long if it has to be done by hand

Rosemoe commented 3 years ago

You can use ANTLR or JFlex