Sign in
gem5
/
public
/
gem5
/
7b9364b5c0e0a211449c2974c31f9c5a4176557d
/
.
/
ext
/
ply
/
test
/
pkg_test6
/
parsing
/
statement.py
blob: ef7dc55e3ff9bf55991f832bf0956c59fffd9c02 [
file
] [
log
] [
blame
]
# This file contains definitions of statement grammar
def
p_statement_assign
(
t
):
'statement : NAME EQUALS expression'
names
[
t
[
1
]]
=
t
[
3
]
def
p_statement_expr
(
t
):
'statement : expression'
t
[
0
]
=
t
[
1
]