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

New and improved HOL parser #1333

Merged
merged 21 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Manual/Tools/polyscripter.sml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ fun lnumdie linenum extra exn =

val outputPrompt = ref "> "

val quote = QFRead.fromString
val quote = HolParser.fromString
val default_linewidth = 77

fun quoteFile lnum fname =
QFRead.inputFile fname handle e => lnumdie lnum "" e
HolParser.inputFile fname handle e => lnumdie lnum "" e

datatype lbuf =
LB of {
Expand Down Expand Up @@ -319,7 +319,7 @@ fun process_line debugp umap obuf origline lbuf = let
end
val assertcmd = "##assert "
val assertcmdsz = size assertcmd
val stringCReader = #read o QFRead.stringToReader true
val stringCReader = #read o HolParser.stringToReader true
fun compile exnhandle input =
(if debugp then
TextIO.output(TextIO.stdErr, input)
Expand Down
6 changes: 3 additions & 3 deletions developers/genUseScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ in
(push, read, reset)
end;

val _ = use "../tools/Holmake/QuoteFilter.sml";
val _ = use "../tools/Holmake/QFRead.sig";
val _ = use "../tools/Holmake/QFRead.sml";
val _ = use "../tools/Holmake/HolLex.sml";
val _ = use "../tools/Holmake/HolParser.sig";
val _ = use "../tools/Holmake/HolParser.sml";
val _ = use "../tools/Holmake/Holdep_tokens.sig"
val _ = use "../tools/Holmake/Holdep_tokens.sml";

Expand Down
2 changes: 1 addition & 1 deletion src/AI/sml_inspection/smlExecute.sml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ val sml_thml_glob = ref []

fun quse_string s =
let
val stream = TextIO.openString (QFRead.fromString false s)
val stream = TextIO.openString (HolParser.fromString false s)
fun infn () = TextIO.input1 stream
in
(
Expand Down
Loading