-
Notifications
You must be signed in to change notification settings - Fork 25
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
Structured Typesetting (STS) generation #9
Open
tirix
wants to merge
14
commits into
metamath:master
Choose a base branch
from
tirix:structured-typesetting
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7742b5c
Structured Typesetting (STS) generation
tirix 8af50bc
Merge branch 'master' into structured-typesetting
tirix eedc22f
Rename global variables (to adapt to change 0.187 15-Aug-2020)
tirix 9202215
Delete makefile, formatting.
tirix 991bd6c
Double-space after periods in help texts.
tirix 1a66907
More help text formatting
tirix f3ae0fa
Typo: parsetSTSRules -> parseSTSRules
tirix 2a870d8
Update comments in metamath.c
tirix ea0bde7
Merge branch 'structured-typesetting' of https://github.com/tirix/met…
digama0 59c02a3
Merge remote-tracking branch 'origin/master' into tirix-structured-ty…
digama0 6371dc7
Merge commit 'origin/master~' into tirix-structured-typesetting
digama0 dcbc83a
Merge remote-tracking branch 'origin/master' into tirix-structured-ty…
digama0 c5925cb
fix compile errors/warnings
digama0 e5f602f
tabs -> spaces
digama0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.o | ||
metamath | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ flag processCommandLine(void) | |
"OPEN|CLOSE|SHOW|SEARCH|SET|VERIFY|SUBMIT|SYSTEM|PROVE|FILE|WRITE|", | ||
"MARKUP|ASSIGN|REPLACE|MATCH|UNIFY|LET|INITIALIZE|DELETE|IMPROVE|", | ||
"MINIMIZE_WITH|EXPAND|UNDO|REDO|SAVE|DEMO|INVOKE|CLI|EXPLORE|TEX|", | ||
"LATEX|HTML|COMMENTS|BIBLIOGRAPHY|MORE|", | ||
"LATEX|HTML|STS|COMMENTS|BIBLIOGRAPHY|MORE|", | ||
"TOOLS|MIDI|$|<$>", NULL))) goto pclbad; | ||
if (cmdMatches("HELP OPEN")) { | ||
if (!getFullArg(2, "LOG|TEX|<LOG>")) goto pclbad; | ||
|
@@ -111,7 +111,7 @@ flag processCommandLine(void) | |
goto pclgood; | ||
} | ||
if (cmdMatches("HELP VERIFY")) { | ||
if (!getFullArg(2, "PROOF|MARKUP|<PROOF>")) | ||
if (!getFullArg(2, "PROOF|MARKUP|STS|<PROOF>")) | ||
goto pclbad; | ||
goto pclgood; | ||
} | ||
|
@@ -518,9 +518,19 @@ flag processCommandLine(void) | |
if (lastArgMatches("/")) { | ||
i++; | ||
if (!getFullArg(i, cat( | ||
"FULL|COMMENT|TEX|OLD_TEX|HTML|ALT_HTML|TIME|BRIEF_HTML", | ||
"FULL|COMMENT|TEX|OLD_TEX|HTML|ALT_HTML|STS|TIME|BRIEF_HTML", | ||
"|BRIEF_ALT_HTML|MNEMONICS|NO_VERSIONING|<FULL>", NULL))) | ||
goto pclbad; | ||
if (lastArgMatches("STS")) { | ||
i++; | ||
if (strlen(stsOutput)) { | ||
if (!getFullArg(i,cat("* Using which output mode <",stsOutput,">? ",NULL))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorrect indentation |
||
goto pclbad; | ||
} else { | ||
if (!getFullArg(i,"* Using which output mode <mathml>? ")) | ||
goto pclbad; | ||
} | ||
} | ||
} else { | ||
break; | ||
} | ||
|
@@ -1196,7 +1206,7 @@ flag processCommandLine(void) | |
|
||
if (cmdMatches("VERIFY")) { | ||
if (!getFullArg(1, | ||
"PROOF|MARKUP|<PROOF>")) | ||
"PROOF|MARKUP|STS|<PROOF>")) | ||
goto pclbad; | ||
if (cmdMatches("VERIFY PROOF")) { | ||
if (g_sourceHasBeenRead == 0) { | ||
|
@@ -1255,6 +1265,21 @@ flag processCommandLine(void) | |
|
||
goto pclgood; | ||
} | ||
|
||
if (cmdMatches("VERIFY STS")) { | ||
if (g_statements == 0) { | ||
print2("?No source file has been read in. Use READ first.\n"); | ||
goto pclbad; | ||
} | ||
if (strlen(stsOutput)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicated code from line 586 (with i == 2) |
||
if (!getFullArg(2,cat("* Using which output mode <",stsOutput,">? ",NULL))) | ||
goto pclbad; | ||
} else { | ||
if (!getFullArg(2,"* Using which output mode <mathml>? ")) | ||
goto pclbad; | ||
} | ||
goto pclgood; | ||
} | ||
} | ||
|
||
if (cmdMatches("DBG")) { | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wlammen writes:
I'm not sure which info you would like to add to the README.
There is a standard .gitignore file for C projects here, we could give it a try.
Maybe better in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why I added this comment is, because the metamath sources are distributed via a tar archive as well. Obviously you wont need the gitignore in this case. I think, some kind of distribution how-to is finally called for. That are my thoughts. I was curious why you added the file. Separate PR is fine with me.