Skip to content

Commit

Permalink
chore: remove internal/scripts folder and move it to scripts. (#641)
Browse files Browse the repository at this point in the history
* chore: remove internal/scripts folder and move it to scripts.

* chore: update parser fuzz deps.
  • Loading branch information
Peefy committed Aug 7, 2023
1 parent 939c2ff commit 25c2748
Show file tree
Hide file tree
Showing 30 changed files with 1,679 additions and 192 deletions.
7 changes: 2 additions & 5 deletions kclvm/api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{env, path::PathBuf};

use prost_wkt_build::{FileDescriptorSet, Message};

/// According to the file KCLVM/internal/kclvm_py/spec/gpyrpc/gpyrpc.proto, automatically generate
/// According to the file kclvm/spec/gpyrpc/gpyrpc.proto, automatically generate
/// the corresponding rust source file to the directory src/model
fn main() {
std::env::set_var(
Expand All @@ -21,10 +21,7 @@ fn main() {
.extern_path(".google.protobuf.Timestamp", "::prost_wkt_types::Timestamp")
.extern_path(".google.protobuf.Value", "::prost_wkt_types::Value")
.file_descriptor_set_path(&descriptor_file)
.compile_protos(
&["../../internal/spec/gpyrpc/gpyrpc.proto"],
&["../../internal/spec/gpyrpc/"],
)
.compile_protos(&["../spec/gpyrpc/gpyrpc.proto"], &["../spec/gpyrpc/"])
.expect("Running prost build failed.");

let descriptor_bytes = std::fs::read(descriptor_file).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion kclvm/api/src/service/capi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ macro_rules! call {
///
/// `args`: [*const c_char]
/// Arguments of the call serialized as protobuf byte sequence,
/// refer to internal/spec/gpyrpc/gpyrpc.proto for the specific definitions of arguments
/// refer to kclvm/spec/gpyrpc/gpyrpc.proto for the specific definitions of arguments
///
/// # Returns
///
Expand Down
1 change: 0 additions & 1 deletion kclvm/parser/src/lexer/indent.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! KCL indent handling.
//! See details defined in KCL Grammar ['./spec/grammar'].

use std::cmp::Ordering;

Expand Down
3 changes: 1 addition & 2 deletions kclvm/parser/src/lexer/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! A KCL lexer.
//!
//! The lexer is built on the low level [`kclvm_lexer`], and works
//! based on the rules defined by the KCL grammar ['./spec/grammar'].
//! The lexer is built on the low level [`kclvm_lexer`]
//!
//! It's main responsibilities:
//! 1. Mapping low level [`kclvm_lexer::Token`] tokens into [`kclvm_ast::Token`] tokens,
Expand Down
1 change: 0 additions & 1 deletion kclvm/sema/src/resolver/calculation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::resolver::Resolver;
use crate::ty::{has_any_type, is_upper_bound, sup, Type, TypeInferMethods, ZERO_LIT_TYPES};
use kclvm_ast::ast;
use kclvm_error::diagnostic::Range;
use kclvm_error::Position;

const DIV_OR_MOD_ZERO_MSG: &str = "integer division or modulo by zero";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright 2023 The KCL Authors. All rights reserved.
//
// This file defines the request parameters and return structure of the KCLVM RPC server.
// We can use the following command to start a KCLVM RPC server.
// This file defines the request parameters and return structure of the KCL RPC server.

syntax = "proto3";

Expand Down
Loading

0 comments on commit 25c2748

Please sign in to comment.