Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tiger
nolimips
Commits
263b6a76
Commit
263b6a76
authored
Aug 19, 2003
by
Benoit Perrot
Browse files
Accept quoted characters.
parent
99ba1ed6
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
263b6a76
2003-08-19 Benot Perrot <benoit@lrde.epita.fr>
* dev/mipsy-scanner-gen.py: Accept a quoted character as an integer
value.
2003-08-14 Benot Perrot <benoit@lrde.epita.fr>
* configure.ac, NEWS:
...
...
dev/mipsy-scanner-gen.py
View file @
263b6a76
...
...
@@ -164,6 +164,21 @@ print """
-?{dec_int} yylval->i = atoi (yytext); return INTEGER;
-?{hex_int} yylval->i = strtoll (yytext, 0, 16); return INTEGER;
'
\\\\
a' yylval->i = '
\\
a'; return INTEGER;
'
\\\\
b' yylval->i = '
\\
b'; return INTEGER;
'
\\\\
f' yylval->i = '
\\
f'; return INTEGER;
'
\\\\
n' yylval->i = '
\\
n'; return INTEGER;
'
\\\\
r' yylval->i = '
\\
r'; return INTEGER;
'
\\\\
t' yylval->i = '
\\
t'; return INTEGER;
'
\\\\
v' yylval->i = '
\\
v'; return INTEGER;
'
\\\\
[
\\\\\\
']' yylval->i = yytext[1]; return INTEGER;
'
\\\\
.' {
std::cerr << *yylloc
<<
\"
: unrecognized escape:
\"
<< escape (yytext) << std::endl;
exit_set (exit_scan);
}
'[^
\\
'
\\
n
\\
r
\\\\
]' yylval->i = yytext[1]; return INTEGER;
\\\"
yylval->s = new std::string; BEGIN STATE_STRING;
<STATE_STRING>{
...
...
prj
View file @
263b6a76
...
...
@@ -2,16 +2,16 @@
(Created-By-Prcs-Version 1 3 2)
(Project-Description "")
(Project-Version mipsy 0 5
0
)
(Parent-Version mipsy 0
49
)
(Project-Version mipsy 0 5
1
)
(Parent-Version mipsy 0
50
)
(Version-Log
"
Bump to 0.5
"
Accept quoted characters.
")
(New-Version-Log
"")
(Checkin-Time "T
h
u, 1
4
Aug 2003 1
4
:4
4
:2
0
+0200")
(Checkin-Time "Tu
e
, 1
9
Aug 2003 1
9
:4
3
:2
2
+0200")
(Checkin-Login benoit)
(Files
...
...
@@ -19,7 +19,7 @@
;; ./
(AUTHORS (mipsy/0_AUTHORS 1.1 644))
(COPYING (mipsy/1_COPYING 1.1 644))
(ChangeLog (mipsy/2_ChangeLog 1.4
4
644))
(ChangeLog (mipsy/2_ChangeLog 1.4
5
644))
(Makefile.am (mipsy/3_Makefile.a 1.5 644))
(NEWS (mipsy/b/25_NEWS 1.5 644))
(README (mipsy/4_README 1.2 644))
...
...
@@ -36,7 +36,7 @@
(dev/mipsy-inst-gen.py (mipsy/12_mipsy-inst 1.3 745))
(dev/mipsy-mk-inst-gen.py (mipsy/b/15_mipsy-mk-i 1.2 745))
(dev/mipsy-parser-gen.py (mipsy/13_mipsy-pars 1.4 745))
(dev/mipsy-scanner-gen.py (mipsy/14_mipsy-scan 1.
5
745))
(dev/mipsy-scanner-gen.py (mipsy/14_mipsy-scan 1.
6
745))
(dev/mipsy.py (mipsy/16_mipsy.py 1.4 745))
(dev/mipsy.xml (mipsy/17_mipsy.xml 1.10 644))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment