mirror of
https://github.com/comby-tools/comby.git
synced 2024-10-26 13:19:23 +03:00
Add Julia, Fortran, Pascal.
This commit is contained in:
parent
7d789a58fe
commit
210bbcc8a3
@ -315,6 +315,49 @@ module OCaml = struct
|
||||
include Matcher.Make(Syntax)
|
||||
end
|
||||
|
||||
(** Follow Free Pascal that allows nested comments, although Rosetta takes the opposite view. *)
|
||||
module Pascal = struct
|
||||
module Syntax = struct
|
||||
open Types
|
||||
include Generic.Syntax
|
||||
|
||||
let comments =
|
||||
[ Nested_multiline ("(*", "*)")
|
||||
; Nested_multiline ("{", "}")
|
||||
; Until_newline "//"
|
||||
]
|
||||
end
|
||||
|
||||
include Matcher.Make(Syntax)
|
||||
end
|
||||
|
||||
module Julia = struct
|
||||
module Syntax = struct
|
||||
open Types
|
||||
include Generic.Syntax
|
||||
|
||||
let comments =
|
||||
[ Nested_multiline ("#=", "=#")
|
||||
; Until_newline "#"
|
||||
]
|
||||
end
|
||||
|
||||
include Matcher.Make(Syntax)
|
||||
end
|
||||
|
||||
module Fortran = struct
|
||||
module Syntax = struct
|
||||
open Types
|
||||
include Generic.Syntax
|
||||
|
||||
let comments =
|
||||
[ Until_newline "!"
|
||||
]
|
||||
end
|
||||
|
||||
include Matcher.Make(Syntax)
|
||||
end
|
||||
|
||||
module Haskell = struct
|
||||
module Syntax = struct
|
||||
open Types
|
||||
|
Loading…
Reference in New Issue
Block a user