Syntax Included
ID: 1125
Description
You are writing your first website and seem to be making your fair share of simple HTML syntax errors. You have decided to write an HTML parser to help you determine if your HTML code is syntactically correct based on the following condensed HTML definition:

HTML CODE <HTML>BODY</HTML>
BODY <BODY>TEXT</BODY>
TEXT STRING | STRING TEXT | TAG | TAG TEXT
STRING possibly empty string of printable characters other than '<' and '>')
TAG BOLD | ITALICS | LINK
BOLD <B>TEXT</B>
ITALICS <I>TEXT</I>
LINK <A HREF=URL>TEXT</A>
URL http://STRING.com
Input
Each test case consists of up to 1000 characters. Spaces can be contained anywhere within the data set.
Note that all tags are case sensitive.
Output
If the code is syntactically correct, the following string will be printed: "Syntax Included"

Otherwise the following string will be printed:

"No Syntax Included"
Sample Test Cases
InputExpected Output
<HTML><BODY><B>Hello world!</B></BODY></HTML>
Syntax Included
<HTML><BODY><B>Is this correct?</B></HTML>
No Syntax Included
<HTML><BODY><A HREF=http://www.go.com>link</A></BODY></HTML>
Syntax Included
Recent Posts
Recent posts about this problem...
Explain this grammar - (3 Replies) - View Posts
strange TLE - (1 Replies) - View Posts
Tags
Statistics
The Tops
Shortest Submission erik-jan-k (utwente) 0.77 kB GNU C++ view
Most Popular Submission erik-jan-k (utwente) 2.51 GNU C++ view