diff --git a/build/sync.sh b/build/sync.sh index 1ed3158b..bf9b0c6e 100755 --- a/build/sync.sh +++ b/build/sync.sh @@ -61,6 +61,7 @@ else then echo "Copying HTML docs to docs/..." cp -r $TMPMOUNT/HTML/* ../docs + rm -rf ../src/HTML/ else echo "No HTML docs to copy." fi diff --git a/src/Demo/Lectures/LexDemo.ZC b/src/Demo/Lectures/LexDemo.ZC new file mode 100755 index 00000000..340e089c --- /dev/null +++ b/src/Demo/Lectures/LexDemo.ZC @@ -0,0 +1,37 @@ + +// See $LK+PU,"Tokens",A="MN:TK_EOF"$. + +U0 Main() +{ + U8 *src; + CCompCtrl *cc; + I64 tk; + + "\nThis will Lex an expression,\n" + "reporting token-by-token.\n\n"; + + while (TRUE) + { + "\n"; + src = StrGet; + if (*src) + { + cc = CompCtrlNew(src); + + while (tk = Lex(cc)) + { + "TOKEN: 0x%04X %d\n", tk, tk; + } + + CompCtrlDel(cc); + } + else + { + Free(src); + break; + } + } +} + +Main; + diff --git a/src/Doc/ChangeLog.DD b/src/Doc/ChangeLog.DD index ad7b3be2..08b75651 100755 --- a/src/Doc/ChangeLog.DD +++ b/src/Doc/ChangeLog.DD @@ -1,4 +1,6 @@ $WW,1$$FG,5$$TX+CX,"ChangeLog"$$FG$ +$IV,1$----12/30/21 17:12:01----$IV,0$ +* Added $LK+PU,"LexDemo",A="FI:::/Demo/Lectures/LexDemo.ZC"$. $IV,1$----12/11/21 05:57:44----$IV,0$ * Raised version number to 1.07. diff --git a/src/Home/Net/Utilities/Ping.ZC b/src/Home/Net/Utilities/Ping.ZC index b7643bea..6835b903 100755 --- a/src/Home/Net/Utilities/Ping.ZC +++ b/src/Home/Net/Utilities/Ping.ZC @@ -36,6 +36,7 @@ I64 Ping(U8 *hostname, I64 timeout=JIFFY_FREQ) return -1; } + "\n"; while (!CharScan) { payload = MAlloc(64); diff --git a/src/System/Define.ZC b/src/System/Define.ZC index 8f0818bb..e5508206 100755 --- a/src/System/Define.ZC +++ b/src/System/Define.ZC @@ -15,7 +15,7 @@ U0 LoadDocDefines() //$LK,"DD_BOOT_HIGH_LOC_DVD",A="FF:::/System/Boot/BootDVD.ZC,DD_BOOT_HIGH_LOC_DVD"$ $TR,"LineRep"$ -$ID,2$DefinePrint("DD_ZEALOS_LOC","95,269"); +$ID,2$DefinePrint("DD_ZEALOS_LOC","95,270"); $ID,-2$ DefinePrint("DD_MP_VECT", "%08X", MP_VECT_ADDR); DefinePrint("DD_MP_VECT_END", "%08X", MP_VECT_ADDR + COREAP_16BIT_INIT_END - COREAP_16BIT_INIT - 1);