Skip to content

ben221199/sgml-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

SGML Tests

SGMLLogsObjects
<!NAME>
CON
CON -> MD @MDO		<!
       MD #DCL		N
       MD		AME
CON <- MD @MDC		>
CON
MarkupDeclaration{
	items=[
		"NAME"
	]
}
<!DOCTYPE html>
CON
CON -> MD @MDO		<!
       MD #DCL		D
       MD		OCTYPE html
CON <- MD @MDC		>
CON
MarkupDeclaration{
	items=[
		"DOCTYPE",
		new Seperator(" "),
		"html"
	]
}
<!--COMMENT_TEXT-->
CON
CON -> MD @MDO		<!
       MD @COM #DCL	--
       MD		COMMENT_TEXT
       MD @COM		--
CON <- MD @MDC		>
CON
MarkupDeclaration{
	items=[
		Comment{value="COMMENT_TEXT"}
	]
}
<![]>
CON
CON -> MD @MDO			<!
       MD -> DSM? @DSO #DCL	[
       MD <- DSM? @DSC		]
CON <- MD @MDC			>
CON
MarkupDeclaration{
	items=[
		DeclarationSubset{items=[]}
	]
}
<![CDATA[SomeTextOrSomething]]>
CON
CON -> MD @MDO			<!
       MD -> DSM? @DSO #DCL	[
             DSM?		CDATA
             DSM? -> CON @???	[
                     CON	SomeTextOrSomething
       MD <- DSM? <- CON @MSC	]]
CON <- MD @MDC			>
CON

Note: The specification is not clear about marked sections.

MarkupDeclaration{
	items=[
		DeclarationSubset{items=[
			"CDATA",
			DeclarationSubset{items=[
				"SomeTextOrSomething"
			]}
		]}
	]
}
<!>
CON
CON -> MD @MDO		<!
CON <- MD @MDC #DCL	>
CON
MarkupDeclaration{items=[]}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published