Skip to content

Commit 155870b

Browse files
committed
add generated code
1 parent ff46e39 commit 155870b

15 files changed

Lines changed: 1145 additions & 16 deletions

‎plcscl/src/generated/blocks.rs‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Generated AST types
2+
// DO NOT EDIT
3+
4+
use std::fmt;
5+
6+
#[derive(Debug, Clone, PartialEq)]
7+
pub struct Program {
8+
// Fields to be determined
9+
}
10+
11+
#[derive(Debug, Clone, PartialEq)]
12+
pub struct Block {
13+
// Fields to be determined
14+
}
15+
16+
#[derive(Debug, Clone, PartialEq)]
17+
pub struct FunctionBlockDecl {
18+
// Fields to be determined
19+
}
20+
21+
#[derive(Debug, Clone, PartialEq)]
22+
pub struct FunctionDecl {
23+
// Fields to be determined
24+
}
25+
26+
#[derive(Debug, Clone, PartialEq)]
27+
pub struct DataBlockDecl {
28+
// Fields to be determined
29+
}
30+
31+
#[derive(Debug, Clone, PartialEq)]
32+
pub struct OrganizationBlockDecl {
33+
// Fields to be determined
34+
}
35+
36+
#[derive(Debug, Clone, PartialEq)]
37+
pub struct FunctionCallStmt {
38+
// Fields to be determined
39+
}
40+
41+
#[derive(Debug, Clone, PartialEq)]
42+
pub struct FunctionCall {
43+
// Fields to be determined
44+
}
45+
46+
#[derive(Debug, Clone, PartialEq)]
47+
pub struct BlockComment {
48+
// Fields to be determined
49+
}
50+
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// Generated AST types
2+
// DO NOT EDIT
3+
4+
use std::fmt;
5+
6+
#[derive(Debug, Clone, PartialEq)]
7+
pub struct Expression {
8+
// Fields to be determined
9+
}
10+
11+
#[derive(Debug, Clone, PartialEq)]
12+
pub struct LogicalOrExpr {
13+
// Fields to be determined
14+
}
15+
16+
#[derive(Debug, Clone, PartialEq)]
17+
pub struct LogicalXorExpr {
18+
// Fields to be determined
19+
}
20+
21+
#[derive(Debug, Clone, PartialEq)]
22+
pub struct LogicalAndExpr {
23+
// Fields to be determined
24+
}
25+
26+
#[derive(Debug, Clone, PartialEq)]
27+
pub struct EqualityExpr {
28+
// Fields to be determined
29+
}
30+
31+
#[derive(Debug, Clone, PartialEq)]
32+
pub struct ComparisonExpr {
33+
// Fields to be determined
34+
}
35+
36+
#[derive(Debug, Clone, PartialEq)]
37+
pub struct AdditiveExpr {
38+
// Fields to be determined
39+
}
40+
41+
#[derive(Debug, Clone, PartialEq)]
42+
pub struct MultiplicativeExpr {
43+
// Fields to be determined
44+
}
45+
46+
#[derive(Debug, Clone, PartialEq)]
47+
pub struct PowerExpr {
48+
// Fields to be determined
49+
}
50+
51+
#[derive(Debug, Clone, PartialEq)]
52+
pub struct UnaryExpr {
53+
// Fields to be determined
54+
}
55+
56+
#[derive(Debug, Clone, PartialEq)]
57+
pub struct PostfixExpr {
58+
// Fields to be determined
59+
}
60+
61+
#[derive(Debug, Clone, PartialEq)]
62+
pub struct PrimaryExpr {
63+
// Fields to be determined
64+
}
65+
66+
#[derive(Debug, Clone, PartialEq)]
67+
pub struct Lvalue {
68+
// Fields to be determined
69+
}
70+

‎plcscl/src/generated/literals.rs‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Generated AST types
2+
// DO NOT EDIT
3+
4+
use std::fmt;
5+
6+
#[derive(Debug, Clone, PartialEq)]
7+
pub struct Literal {
8+
// Fields to be determined
9+
}
10+
11+
#[derive(Debug, Clone, PartialEq)]
12+
pub enum BooleanLiteral {
13+
}
14+
15+
#[derive(Debug, Clone, PartialEq)]
16+
pub struct NumericLiteral {
17+
// Fields to be determined
18+
}
19+
20+
pub type IntegerLiteral = String;
21+
22+
pub type RealLiteral = String;
23+
24+
pub type HexLiteral = String;
25+
26+
pub type BinaryLiteral = String;
27+
28+
#[derive(Debug, Clone, PartialEq)]
29+
pub struct TimeLiteral {
30+
// Fields to be determined
31+
}
32+
33+
pub type StringLiteral = String;
34+

‎plcscl/src/generated/mod.rs‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Generated module exports
2+
// DO NOT EDIT - this file is generated by codegen
3+
4+
pub mod blocks;
5+
pub mod types;
6+
pub mod statements;
7+
pub mod expressions;
8+
pub mod literals;
9+
10+
pub mod transform_blocks;
11+
pub mod transform_types;
12+
pub mod transform_statements;
13+
pub mod transform_expressions;
14+
pub mod transform_literals;
15+
16+
// Re-export main types
17+
pub use blocks::*;
18+
pub use types::*;
19+
pub use statements::*;
20+
pub use expressions::*;
21+
pub use literals::*;

0 commit comments

Comments
 (0)