-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#72) Parser: add a failing test for lexer hack investigation
- Loading branch information
Showing
2 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
Cesium.Parser.Tests/ParserTests/FullParserTests.AbsCallTest.verified.txt
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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
{ | ||
"$type": "Cesium.Ast.TranslationUnit, Cesium.Ast", | ||
"Declarations": [ | ||
{ | ||
"$type": "Cesium.Ast.FunctionDefinition, Cesium.Ast", | ||
"Specifiers": [ | ||
{ | ||
"$type": "Cesium.Ast.SimpleTypeSpecifier, Cesium.Ast", | ||
"TypeName": "int" | ||
} | ||
], | ||
"Declarator": { | ||
"$type": "Cesium.Ast.Declarator, Cesium.Ast", | ||
"Pointer": null, | ||
"DirectDeclarator": { | ||
"$type": "Cesium.Ast.IdentifierListDirectDeclarator, Cesium.Ast", | ||
"Base": { | ||
"$type": "Cesium.Ast.IdentifierDirectDeclarator, Cesium.Ast", | ||
"Identifier": "main", | ||
"Base": null | ||
}, | ||
"Identifiers": null | ||
} | ||
}, | ||
"Declarations": null, | ||
"Statement": { | ||
"$type": "Cesium.Ast.CompoundStatement, Cesium.Ast", | ||
"Block": [ | ||
{ | ||
"$type": "Cesium.Ast.Declaration, Cesium.Ast", | ||
"Specifiers": [ | ||
{ | ||
"$type": "Cesium.Ast.SimpleTypeSpecifier, Cesium.Ast", | ||
"TypeName": "int" | ||
} | ||
], | ||
"InitDeclarators": [ | ||
{ | ||
"$type": "Cesium.Ast.InitDeclarator, Cesium.Ast", | ||
"Declarator": { | ||
"$type": "Cesium.Ast.Declarator, Cesium.Ast", | ||
"Pointer": null, | ||
"DirectDeclarator": { | ||
"$type": "Cesium.Ast.IdentifierDirectDeclarator, Cesium.Ast", | ||
"Identifier": "exitCode", | ||
"Base": null | ||
} | ||
}, | ||
"Initializer": { | ||
"$type": "Cesium.Ast.AssignmentInitializer, Cesium.Ast", | ||
"Expression": { | ||
"$type": "Cesium.Ast.FunctionCallExpression, Cesium.Ast", | ||
"Function": { | ||
"$type": "Cesium.Ast.ConstantExpression, Cesium.Ast", | ||
"Constant": { | ||
"Kind": "Identifier", | ||
"Text": "abs" | ||
} | ||
}, | ||
"Arguments": [ | ||
{ | ||
"$type": "Cesium.Ast.NegationExpression, Cesium.Ast", | ||
"Target": { | ||
"$type": "Cesium.Ast.ConstantExpression, Cesium.Ast", | ||
"Constant": { | ||
"Kind": "IntLiteral", | ||
"Text": "42" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$type": "Cesium.Ast.ExpressionStatement, Cesium.Ast", | ||
"Expression": { | ||
"$type": "Cesium.Ast.FunctionCallExpression, Cesium.Ast", | ||
"Function": { | ||
"$type": "Cesium.Ast.ConstantExpression, Cesium.Ast", | ||
"Constant": { | ||
"Kind": "Identifier", | ||
"Text": "exit" | ||
} | ||
}, | ||
"Arguments": [ | ||
{ | ||
"$type": "Cesium.Ast.ConstantExpression, Cesium.Ast", | ||
"Constant": { | ||
"Kind": "Identifier", | ||
"Text": "exitCode" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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