Flutter Engine
The Flutter Engine
|
Variables | |
wordWithUnderscores = pp.Word(pp.alphanums + '_') | |
pipeList = pp.delimited_list(pp.SkipTo(pp.Literal("|") | pp.Literal("]")), delim="|") | |
bracketedPipeList | |
unbracketedValue = pp.Group(pp.SkipTo(";")) | |
tuple | valueList |
value | |
tuple | values |
tuple | expectation |
tuple | code |
reqGlsl100 = pp.Keyword("require").suppress() + pp.Keyword("full_glsl_es_100_support") | |
desc = pp.Keyword("desc") + pp.QuotedString('"') | |
version100es = pp.Keyword("version") + pp.Keyword("100") + pp.Keyword("es") | |
tuple | ignoredCaseItem = (desc | version100es).suppress() |
tuple | caseItem = pp.Group(values | expectation | code | reqGlsl100) | ignoredCaseItem |
caseBody = pp.ZeroOrMore(caseItem) | |
blockEnd = pp.Keyword("end").suppress(); | |
caseHeader = pp.Keyword("case") + wordWithUnderscores | |
case = pp.Group(caseHeader + caseBody + blockEnd) | |
tuple | groupHeader = (pp.Keyword("group") + wordWithUnderscores + pp.QuotedString('"')).suppress() |
group = pp.Forward() | |
grammar = group | |
testCases = grammar.parse_string(sys.stdin.read(), parse_all=True) | |
testDirectory = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) | |
string | passDirectory = testDirectory + "/pass" |
string | failDirectory = testDirectory + "/fail" |
exist_ok | |
dictionary | written = {} |
testName = c[0] | |
string | skipTest = '' |
bool | expectPass = True |
bool | allowMismatch = False |
string | testCode = '' |
list | inputs = [] |
list | outputs = [] |
valueType = v[0] | |
string | compare = lambda type, a, b : '((' + a + ') == (' + b + '))' |
int | numVariables = 0 |
string | testSpecialization = testCode |
string | declarations = "" |
string | outputChecks = "return true" |
string | path = "%s/%s_%d.rts" % (testDirectory, testName, varIndex) |
f = open(path, "w") | |
bool import_conformance_tests.allowMismatch = False |
Definition at line 109 of file import_conformance_tests.py.
import_conformance_tests.blockEnd = pp.Keyword("end").suppress(); |
Definition at line 71 of file import_conformance_tests.py.
import_conformance_tests.bracketedPipeList |
Definition at line 37 of file import_conformance_tests.py.
import_conformance_tests.case = pp.Group(caseHeader + caseBody + blockEnd) |
Definition at line 74 of file import_conformance_tests.py.
import_conformance_tests.caseBody = pp.ZeroOrMore(caseItem) |
Definition at line 69 of file import_conformance_tests.py.
import_conformance_tests.caseHeader = pp.Keyword("case") + wordWithUnderscores |
Definition at line 73 of file import_conformance_tests.py.
import_conformance_tests.caseItem = pp.Group(values | expectation | code | reqGlsl100) | ignoredCaseItem |
Definition at line 67 of file import_conformance_tests.py.
tuple import_conformance_tests.code |
Definition at line 57 of file import_conformance_tests.py.
Definition at line 167 of file import_conformance_tests.py.
string import_conformance_tests.declarations = "" |
Definition at line 236 of file import_conformance_tests.py.
import_conformance_tests.desc = pp.Keyword("desc") + pp.QuotedString('"') |
Definition at line 63 of file import_conformance_tests.py.
import_conformance_tests.exist_ok |
Definition at line 93 of file import_conformance_tests.py.
tuple import_conformance_tests.expectation |
Definition at line 54 of file import_conformance_tests.py.
bool import_conformance_tests.expectPass = True |
Definition at line 108 of file import_conformance_tests.py.
import_conformance_tests.f = open(path, "w") |
Definition at line 263 of file import_conformance_tests.py.
import_conformance_tests.failDirectory = testDirectory + "/fail" |
Definition at line 92 of file import_conformance_tests.py.
import_conformance_tests.grammar = group |
Definition at line 84 of file import_conformance_tests.py.
import_conformance_tests.group = pp.Forward() |
Definition at line 80 of file import_conformance_tests.py.
tuple import_conformance_tests.groupHeader = (pp.Keyword("group") + wordWithUnderscores + pp.QuotedString('"')).suppress() |
Definition at line 78 of file import_conformance_tests.py.
tuple import_conformance_tests.ignoredCaseItem = (desc | version100es).suppress() |
Definition at line 65 of file import_conformance_tests.py.
list import_conformance_tests.inputs = [] |
Definition at line 111 of file import_conformance_tests.py.
import_conformance_tests.numVariables = 0 |
Definition at line 225 of file import_conformance_tests.py.
string import_conformance_tests.outputChecks = "return true" |
Definition at line 246 of file import_conformance_tests.py.
list import_conformance_tests.outputs = [] |
Definition at line 112 of file import_conformance_tests.py.
import_conformance_tests.passDirectory = testDirectory + "/pass" |
Definition at line 91 of file import_conformance_tests.py.
string import_conformance_tests.path = "%s/%s_%d.rts" % (testDirectory, testName, varIndex) |
Definition at line 260 of file import_conformance_tests.py.
import_conformance_tests.pipeList = pp.delimited_list(pp.SkipTo(pp.Literal("|") | pp.Literal("]")), delim="|") |
Definition at line 36 of file import_conformance_tests.py.
import_conformance_tests.reqGlsl100 = pp.Keyword("require").suppress() + pp.Keyword("full_glsl_es_100_support") |
Definition at line 61 of file import_conformance_tests.py.
string import_conformance_tests.skipTest = '' |
Definition at line 107 of file import_conformance_tests.py.
import_conformance_tests.testCases = grammar.parse_string(sys.stdin.read(), parse_all=True) |
Definition at line 87 of file import_conformance_tests.py.
string import_conformance_tests.testCode = '' |
Definition at line 110 of file import_conformance_tests.py.
string import_conformance_tests.testDirectory = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) |
Definition at line 90 of file import_conformance_tests.py.
import_conformance_tests.testName = c[0] |
Definition at line 102 of file import_conformance_tests.py.
string import_conformance_tests.testSpecialization = testCode |
Definition at line 233 of file import_conformance_tests.py.
import_conformance_tests.unbracketedValue = pp.Group(pp.SkipTo(";")) |
Definition at line 40 of file import_conformance_tests.py.
import_conformance_tests.value |
Definition at line 47 of file import_conformance_tests.py.
tuple import_conformance_tests.valueList |
Definition at line 42 of file import_conformance_tests.py.
tuple import_conformance_tests.values |
Definition at line 49 of file import_conformance_tests.py.
import_conformance_tests.valueType = v[0] |
Definition at line 133 of file import_conformance_tests.py.
import_conformance_tests.version100es = pp.Keyword("version") + pp.Keyword("100") + pp.Keyword("es") |
Definition at line 64 of file import_conformance_tests.py.
import_conformance_tests.wordWithUnderscores = pp.Word(pp.alphanums + '_') |
Definition at line 34 of file import_conformance_tests.py.
dictionary import_conformance_tests.written = {} |
Definition at line 95 of file import_conformance_tests.py.