mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Rename Scalc from_lambda to from_lcalc for consistency
This commit is contained in:
parent
fced0fff54
commit
03645e6404
@ -356,7 +356,7 @@ let driver source_file (options : Cli.options) : int =
|
|||||||
p.Plugin.apply ~source_file ~output_file ~scope:options.ex_scope
|
p.Plugin.apply ~source_file ~output_file ~scope:options.ex_scope
|
||||||
prgm type_ordering
|
prgm type_ordering
|
||||||
| (`Python | `Scalc | `Plugin (Plugin.Scalc _)) as backend -> (
|
| (`Python | `Scalc | `Plugin (Plugin.Scalc _)) as backend -> (
|
||||||
let prgm = Scalc.From_lambda.translate_program prgm in
|
let prgm = Scalc.From_lcalc.translate_program prgm in
|
||||||
match backend with
|
match backend with
|
||||||
| `Scalc ->
|
| `Scalc ->
|
||||||
let _output_file, with_output = get_output_format () in
|
let _output_file, with_output = get_output_format () in
|
||||||
|
19
compiler/scalc/from_lcalc.mli
Normal file
19
compiler/scalc/from_lcalc.mli
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
(* This file is part of the Catala compiler, a specification language for tax
|
||||||
|
and social benefits computation rules. Copyright (C) 2021 Inria, contributor:
|
||||||
|
Louis Gesbert <louis.gesbert@inria.fr>
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
|
use this file except in compliance with the License. You may obtain a copy of
|
||||||
|
the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
License for the specific language governing permissions and limitations under
|
||||||
|
the License. *)
|
||||||
|
|
||||||
|
open Shared_ast
|
||||||
|
|
||||||
|
val translate_program : untyped Lcalc.Ast.program -> Ast.program
|
Loading…
Reference in New Issue
Block a user