代码搜索结果
找到约 10,000 项符合
State Machine 的代码
lex_state4.py
# lex_state2.py
#
# Bad state declaration
import sys
sys.path.insert(0,"..")
import ply.lex as lex
tokens = [
"PLUS",
"MINUS",
"NUMBER",
]
comment = 1
states = (('comment', 'exclsi
lex_state2.py
# lex_state2.py
#
# Bad state declaration
import sys
sys.path.insert(0,"..")
import ply.lex as lex
tokens = [
"PLUS",
"MINUS",
"NUMBER",
]
states = ('comment','example')
t_PLUS =
lex_state4.exp
lex: state type for state comment must be 'inclusive' or 'exclusive'
Traceback (most recent call last):
File "./lex_state4.py", line 39, in
lex.lex()
File "../ply/lex.py", line 759, i
lex_state_noerror.exp
lex: Warning. no error rule is defined for exclusive state 'comment'
lex_state1.py
# lex_state1.py
#
# Bad state declaration
import sys
sys.path.insert(0,"..")
import ply.lex as lex
tokens = [
"PLUS",
"MINUS",
"NUMBER",
]
states = 'comment'
t_PLUS = r'\+'
t_MINU
lex_state3.py
# lex_state2.py
#
# Bad state declaration
import sys
sys.path.insert(0,"..")
import ply.lex as lex
tokens = [
"PLUS",
"MINUS",
"NUMBER",
]
comment = 1
states = ((comment, 'inclusiv
lex_state_try.py
# lex_state2.py
#
# Declaration of a state for which no rules are defined
import sys
sys.path.insert(0,"..")
import ply.lex as lex
tokens = [
"PLUS",
"MINUS",
"NUMBER",
]
comment =
pim_state_dependency.eps
%!PS-Adobe-2.0 EPSF-2.0
%%Title: pim_state_dependency.fig
%%Creator: fig2dev Version 3.2 Patchlevel 3d
%%CreationDate: Tue Nov 26 02:12:13 2002
%%For: pavlin@oreo.icir.org (Pavlin Radoslavov)
%%Boundi
pim_state_dependency.fig
#FIG 3.2
Portrait
Center
Inches
Letter
100.00
Single
-2
1200 2
6 4125 1050 11925 10050
1 3 0 1 0 7 50 0 -1 0.000 1 0.0000 6300 5400 309 309 6300 5400 6600 5475
1 3 0 1 0 7 50 0 -1 0.000 1 0.0000 810
gl_state_of_history.3
.so man3/gl_get_line.3