Skip to content

Commit

Permalink
today()
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph2 committed Aug 6, 2024
1 parent ef7a798 commit 67d1ffa
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 155 deletions.
7 changes: 4 additions & 3 deletions pya2l/aml.g4
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ struct_type_name:
;

struct_member:
m = member | block_definition ';'
m = member';'
;

member:
t = type_name (a += array_specifier)*
| b = block_definition
;

array_specifier:
Expand All @@ -106,9 +107,9 @@ taggedstruct_type_name:

taggedstruct_member:
ts1 = taggedstruct_definition ';'
| '(' ts0 = taggedstruct_definition ')' '*' ';'
| '(' ts0 = taggedstruct_definition ';'? ')' '*' ';'
| bl1 = block_definition ';'
| '(' bl0 = block_definition ')' '*' ';'
| '(' bl0 = block_definition ';'? ')' '*' ';'
;

taggedstruct_definition:
Expand Down
5 changes: 2 additions & 3 deletions pya2l/aml_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ using namespace antlr4;

void marshal(std::stringstream& ss, const AmlFile& amlf);

const std::string BASE{ "C:/csProjects/" };
//const std::string BASE{ ""C:/Users/HP/PycharmProjects/" };

// const std::string BASE{ "C:/csProjects/" };
const std::string BASE{ "C:/Users/HP/PycharmProjects/" };

int main(int argc, const char* argv[]) {
std::ifstream stream;
Expand Down
Loading

0 comments on commit 67d1ffa

Please sign in to comment.