Commit 88ead581 authored by Alain Laporte's avatar Alain Laporte Committed by Christoph Cullmann
Browse files

Symbol viewer: add sample files

parent edc8d199
module pi
real, parameter :: pi = 3.14
contains
subroutine print_pi()
print *, "Pi = ", pi
end subroutine print_pi
end module pi
integer function foo1(param1) result(res)
res = param1 + 1
end function foo1
subroutine sub1(param1, param2)
print *, "sub1(", param1, ", ", param2, ")"
end subroutine sub1
program program1
! Comment line
use pi
print_pi()
print *, "foo1(1) => ", foo1(1)
sub1(1, 2)
end program program1
class Class1 {
constructor(param1, param2) {
}
foo1_in_Class1() {
}
static foo2_in_Class1() {
}
}
function foo1(param1) {
}
class Class2 extends Class1 {
constructor(param1, param2) {
super(param1, param2)
}
}
use strict;
use Module1;
use Module2 1.2.3;
sub foo1 {
}
class Class1
def foo1_in_Class1()
print "foo1_in_Class1"
end
end
def foo1(param1)
print "foo1"
end
#!/bin/bash
function foo1()
{
}
foo2() {
}
#! /bin/env tclsh
set global1 "global1"
proc sum {x y} {
set sum [expr {$x + $y}]
return sum
}
proc printParams params {
foreach arg $args {
puts $arg
}
}
<?XML version="1.0" encoding="utf-8"?>
<!-- Comment one line -->
<Root>
<Town name="Paris">
<Restaurant type="pizza">
Italian Restaurant
</Restaurant>
<Restaurant type="french">French Restaurant</Restaurant>
<Restaurant type="lebanese">
Lebanese
Restaurant
</Restaurant>
<!--
Comment multilines
-->
</Town>
<Town name="Tokyo">
</Town>
</Root>
<?xml version="1.0" encoding="UTF-8"?>
<!-- Comment one line -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="var1">Variable 1</xsl:variable>
<xsl:param name="param1" select="." />
<xsl:template match="body">
<html>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<!--
Comment multilines
-->
<xsl:template match="header1">
<xsl:variable name="var2_in_header1">Variable 2 in template header1</xsl:variable>
<h1>
<xsl:apply-templates />
</h1>
</xsl:template>
</xsl:stylesheet>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment