Update license to MIT

Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
This commit is contained in:
Ming-Wei Shih
2023-02-09 19:26:54 +00:00
parent 8218053c24
commit c0972ad2ba
69 changed files with 149 additions and 130 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![cfg(test)]
use crate::interpreter::*;
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- data: {}
modules:
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: number-equals
+3
View File
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
data: {}
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Captures tricky cases where similar looking expressions will be
# treated as arrays or array-comprs.
+2 -2
View File
@@ -1,5 +1,5 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![cfg(test)]
use crate::interpreter::*;
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: simple
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
+3 -2
View File
@@ -1,5 +1,6 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![cfg(test)]
use crate::interpreter::*;
+2 -2
View File
@@ -1,5 +1,5 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
mod arithmetic;
mod compr;
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: simple
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: simple
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: index-syntax
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
+2 -2
View File
@@ -1,5 +1,5 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![cfg(test)]
use crate::interpreter::*;
+3 -2
View File
@@ -1,5 +1,6 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![cfg(test)]
use std::env;
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- rego: |
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
# To Booleans are parsed as identifiers.
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: comments-immediately-following/1
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
# All other yamls lock down eof.
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: all
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: carriage-return/ok
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
# Valid integers
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: positive
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: positive
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
# Two single char symbols in a row must be parsed correctly.
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: valid
+3
View File
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![cfg(test)]
use anyhow::{bail, Result};
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: case1-compr
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: all
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: basic
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: all
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: case1-compr
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: all
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: namespace
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: data
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: single-char
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: same-line-no-body
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: no-query
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: contains
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: all
+2 -2
View File
@@ -1,5 +1,5 @@
# Copyright (c) Rego-Rs Authors.
# Licensed under the Apache 2.0 license.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
cases:
- note: single-multi-vars
+3 -2
View File
@@ -1,5 +1,6 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![cfg(test)]
use anyhow::{anyhow, bail, Result};
+2 -2
View File
@@ -1,5 +1,5 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
mod interpreter;
mod lexer;
+3 -2
View File
@@ -1,5 +1,6 @@
// Copyright (c) Rego-Rs Authors.
// Licensed under the Apache 2.0 license.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![cfg(test)]
use anyhow::Result;