-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #116
- Loading branch information
Showing
12 changed files
with
1,409 additions
and
1,396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
module semantics.Paths | ||
syntax type feature "Colis_constraints.Feat.t" | ||
syntax val absolute_or_concat_relative "Colis_constraints.Path.(normalize ~cwd:%1 (from_string %2))" | ||
syntax val normalized_path_to_string "Colis_constraints.Path.normal_to_string %1" | ||
end | ||
|
||
module semantics.Buffers | ||
syntax val concat_lines "String.concat \"\n\" %1" | ||
syntax val split_on_default_ifs "Str.(split (regexp \"[ \t\n]+\") %1)" | ||
end | ||
|
||
module semantics.Env | ||
syntax type env "%1 Env.env" | ||
syntax val empty_env "Env.empty %1" | ||
syntax val ([]) "Env.get %1 %2" | ||
syntax val ([<-]) "Env.set %1 %2 %3" | ||
syntax type env0 "%1 Env.IdMap.t" | ||
end | ||
|
||
module semantics.Context | ||
syntax val filter_var_env "Env.filter_var_env (fun v -> v.Semantics__Context.exported) (fun v -> v.Semantics__Context.value) %1" | ||
end | ||
|
||
module interpreter.Semantics | ||
syntax val filter_var_env "Env.filter_var_env (fun v -> v.Interpreter__Semantics.exported) (fun v -> v.Interpreter__Semantics.value) %1" | ||
module interpreter.Interpreter | ||
syntax val interp_utility "Utilities.interp_utility %1 %2 %3" | ||
syntax val normalized_path_to_string "String.concat \"/\" %1" | ||
syntax val absolute_or_concat_relative "Utilities.absolute_or_concat_relative %1 %2" | ||
syntax val identifier_test "\"test\"" | ||
syntax val string_dash_d "\"-d\"" | ||
syntax val identifier_pwd "\"PWD\"" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.