Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first tests for (mm0 parser, mmu parser, mm0+mmu proof checker) #79

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
13 changes: 13 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**positive and negative tests for mm0 and mmu**

This folder holds positive (pass folder) and negative (fail folder) tests for mm0 and mmu, inside subfolders

Those subfolders contain mm0 and mmu files that can be used to test :
- mm0 parsers (parsingMM0 and parsingBoth folder)
- mmu parsers (parsingMMU and ParsingBoth folder)
- mm0 vs mmu proofChecker (all folders):
- parsingMM0, parsingMMU and ParsingBoth handle the parsing stage
- matching handles match between mm0 statements and mmu directives
- registering handles the process of recording joined mm0 statements/mmu directives to form a coherent context
- dynamicParsing handles the behavior of a dynamic parser built on a coherent context
- proofchecking handles the proof checking of a (mm0, mmu) pair
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- lexeme ::= symbol | identifier | number | math-string
-- symbol ::= '*' | '.' | ':' | ';' | '(' | ')' | '>' | '{' | '}' | '=' | '_'
-- identifier ::= [a-zA-Z_][a-zA-Z0-9_]*
-- number ::= 0 | [1-9][0-9]*
-- math-string ::= '$' [^$]* '$'
digama0 marked this conversation as resolved.
Show resolved Hide resolved
sort s…;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Whitespace is ignored except to separate tokens
-- Line comments are written --comment and extend until the next \n; line comments act like whitespace
-- An identifier token matches [0-9a-zA-Z_:]+
-- Characters ( ) are single character symbol tokens
-- Anything else is forbidden
(sort s…)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- lexeme ::= symbol | identifier | number | math-string
-- symbol ::= '*' | '.' | ':' | ';' | '(' | ')' | '>' | '{' | '}' | '=' | '_'
-- identifier ::= [a-zA-Z_][a-zA-Z0-9_]*
-- number ::= 0 | [1-9][0-9]*
-- math-string ::= '$' [^$]* '$'
sort s ;
digama0 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Whitespace is ignored except to separate tokens
-- Line comments are written --comment and extend until the next \n; line comments act like whitespace
-- An identifier token matches [0-9a-zA-Z_:]+
-- Characters ( ) are single character symbol tokens
-- Anything else is forbidden
(sort s )