Skip to content

Commit

Permalink
parser: _testdata/pystr
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jul 5, 2024
1 parent 474121e commit 5bf3399
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions parser/_testdata/pystr/parser.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package main

file pystr.gop
noEntrypoint
ast.FuncDecl:
Name:
ast.Ident:
Name: main
Type:
ast.FuncType:
Params:
ast.FieldList:
Body:
ast.BlockStmt:
List:
ast.ExprStmt:
X:
ast.CallExpr:
Fun:
ast.Ident:
Name: print
Args:
ast.BasicLit:
Kind: PYSTRING
Value: "Hello"
1 change: 1 addition & 0 deletions parser/_testdata/pystr/pystr.gop
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print py"Hello"

0 comments on commit 5bf3399

Please sign in to comment.