aboutsummaryrefslogtreecommitdiff
path: root/src/boot/strap/scanner.clisp
AgeCommit message (Collapse)AuthorFilesLines
2013-06-20Allow inerts in Boot.dos-reis1-0/+6
2012-05-28 * interp/io.boot (findChar): Do not define here.dos-reis1-5/+2
* interp/match.boot (charPosition): Likewise. * boot/utility.boot (charPosition): Now return argument string length if no match. (findChar): New. * boot/scanner.boot (lexerCharPosition): Adjust. (shoeAccumulateLines): Use findChar.
2012-05-26 * boot/ast.boot (bfMDef): Simplify.dos-reis1-13/+9
(backquote): Do not quote integer and string literals.
2012-05-24 * boot/scanner.boot: Eliminate fluid variable $n.dos-reis1-157/+208
(lexerRefresh?): New. (lexerSetLine!): Likewise. (lexerSkipBlank!): Likewise. (lexerSkipToEnd!): Likewise. (lexerAdvancePosition!): Likewise. (lexerCharCountToCompleteTab): Likewise. (lexerCurrentChar): Likewise. (lexerCharPosition): Likewise. (lexerCharacterAt): Likewise. (lexerEol?): Likewise.
2012-05-24 * boot/scanner.boot (lexerLineLength): New.dos-reis1-65/+69
(shoeNextLine): Use it in replacement of $sz. (shoeLineToks): Likewise. (shoeLispEscape): Likewise. (shoeEsc): Likewise. (shoeStartsComment): Likewise. (shoeStartsNegComment): Likewise. (shoeNegComment): Likewise. (shoeComment): Likewise. (shoePossFloat): Likewise. (shoeSpace): Likewise. (shoeS): Likewise. (shoeW): Likewise. (shoeInteger1): Likewise. (shoeNumber): Likewise. (shoeExponent): Likewise.
2012-05-24change lexer line accessor namedos-reis1-53/+55
2012-05-24 * boot/scanner.boot (%Lexer): New record structure.dos-reis1-154/+201
Add a lexer parameter to all lexing functions that need one. Adjust their callers.
2012-05-23 * boot/includer.boot (%SourceLine): New datatype.dos-reis1-2/+5
(makeSourceLine): New. Use source line macro accessors. * boot/pile.boot: Likewise. * boot/scanner.boot: Likewise.
2012-05-23 * boot/tokens.boot (%Token): New datatype.dos-reis1-20/+3
(makeToken): New. * boot/includer.boot: Use %token accessors. * boot/parser.boot: Likewise. * boot/pile.boot: Likewise. * boot/scanner.boot: Likewise. * boot/utility.boot: Export subString.
2012-05-22 * boot/ast.boot (needsPROG): Remove.dos-reis1-336/+316
(shoePROG): Likewise. (declareLocalVars): New. (maybeAddBlock): Likewise. (hasReturn?): Likewise. (shoeCompTran): Tidy.
2012-05-20 * boot/ast.boot (shoeCompTran): Simplify.dos-reis1-30/+28
(shoeCompTran1): Partially defer translation of fluid variable definition. (bindFluidVars!): New. Complete translation. (groupFluidVars): New. * interp/newfort.boot (fortFormatIntrinsics): Remove redundant return.
2012-05-20 * boot/ast.boot (shoeCompTran1): Take variable sets by reference.dos-reis1-21/+21
Remove globals. Adjust caller. (shoeCompTran): Replace fluid variables by references.
2011-10-03 Cleanup.dos-reis1-9/+6
2011-09-30 * boot/utility.boot (firstNonblankPosition): New.dos-reis1-3/+4
(firstBlankPosition): Likewis. * boot/translator.boot (reallyPrettyPrint): New. (genOptimizeOptions): Use it. (evalBootFile): Tidy. (shoePPtoFile): Remove as deadcode. (shoeAddbootIfNec): Rewrite. (shoeAddStringIfNec): Remove. * boot/scanner.boot (shoeNextLine): Use firstNonblankPosition. (shoeEsc): Likewise. (shoePossFloat): Likewise. * boot/initial-env.lisp ($IEEE): Remove. (*LISP-BIN-FILETYPE*): Likewise. (*LISP-SOURCE-FILETYPE*): Likewise. (SHOEPRETTYPRINT1): Likewise, (REALLYPRETTYPRINT): Likewise. (SHOENOPRETTYPRINT): Likewise. (STRPOS): Likewise. (STRPOSL): Likewise. (shoeReadLisp): Likewise.
2011-09-30 * boot/ast.boot (bfFor): Tidy. Handle hashtable iterator forms.dos-reis1-372/+322
(bfIterateTable): New. (separateIterators): Likewise. (bfExpandTableIters): Likewise. (bfLp1): Use them.
2011-05-18 * boot/translator.boot: Remove bindings of $GenVarCounter.dos-reis1-4/+4
* boot/parser.boot (bpOutItem): Bind it here.
2011-05-14cleanupdos-reis1-3/+3
2011-05-13 * boot/utility.boot (charPosition): New.dos-reis1-9/+10
* boot/scanner.boot (shoeAccumulateLines): Use it. (shoeS): Likewise.
2011-04-30more cleanupdos-reis1-1/+2
2011-04-24 * boot/ast.boot (bfMakeCollectInsn): New.dos-reis1-19/+15
(bfDoCollect): Tidy.
2011-04-19 * interp/newfort.boot: Likewise.dos-reis1-1/+2
* interp/define.boot (orderBySubsumption): Fix thinko. * interp/boot-pkg.lisp: Use BOOTTRAN package. Don't import names individually. * boot/utility.boot: New. * boot/translator.boot (exportNames): Fix thinko. * boot/tokens.boot: Add charEq? and scalarEq? builtiin functions. * boot/ast.boot (bfMember): Generate call to symbolMember? for membership tests for symbols.
2011-03-20More cleanupdos-reis1-14/+11
2011-03-20 * boot/translator.boot (FC): Remove.dos-reis1-9/+2
(FBO): Likewise. (FEV): Likewise. (shoeGeneralFC): Likewise. (shoeFindName): Likewise. (shoeFindName2): Likewise. (shoeTransform2): Likewise. * boot/scanner.boot (shoeLineToks): Don't support `)package' line anymore. * boot/includer.boot: Remove support for `)package', `)include', `)includelisp', `)includelines' lines. (shorPackageStartsAt): Remove. (shorFindLines): Likewise. (shoeFileInput): Likewise. (shoeLispFileInput): Likewise. (shoeLineFileInput): Likewise. (shoeFunctionFileInput): Likewise. (shoePlainLine?): Reflect removal. (shoeSimpleLine): Likewise. * boot/tokens.boot (charByName): New builtin library function. * algebra/sf.spad.pamphlet (RealNumberSystem): Don't re-export abs. It is already exported by OrderedRing.
2010-12-29More char cleanupsdos-reis1-107/+77
2010-12-29More character cleanupdos-reis1-11/+34
2010-12-29SUBSTRING cleanupdos-reis1-10/+10
2010-12-28more cleanupdos-reis1-1/+1
2010-12-18 * boot/initial-env.lisp (SIZE): Remove.dos-reis1-3/+3
(MAKE-VEC): Likewise. (MAKE-CVEC): Likewise.
2010-12-11Clean updos-reis1-1/+1
2010-12-10Cleanupdos-reis1-9/+9
2010-05-07 * boot/ast.boot: Miscellaneous cleanup.dos-reis1-2/+1
* boot/includer.boot: Likewise. * boot/parser.boot: Likewise. * boot/pile.boot: Likewise. * boot/scanner.boot: Likewise. * boot/tokens.boot: Likewise. * boot/translator.boot: Likewise.
2009-09-25 * boot/ast.boot (bfMember): New.dos-reis1-2/+1
(bfInfApplication): Use it. * boot/tokens.boot: Don't rename IN. * interp/ax.boot (makeAxFile): Fix thinko. (makeAxExportForm): Likewise.
2009-09-04(no commit message)dos-reis1-7/+4
2009-09-03(no commit message)dos-reis1-1/+1
2009-09-03 * boot/ast.boot: More cleanup.dos-reis1-184/+180
2009-08-30 * boot/ast.boot (bfSequence): Simplify COND branch bodies.dos-reis1-83/+63
2009-05-10Update cached Boot translator bootstrap codedos-reis1-0/+1
2008-08-02 * boot/parser.boot (bpTerm): Term forms depend on the kind ofdos-reis1-2/+2
variable. (bpTypeItem): New. (bpTypeItemList): Use it. (bpTypeAliasDefition): Tidy. (bpCaseItem): Accept wildchars in pattern terms. * boot/ast.boot (bfCompDef): Don't name unused pattern variables. (bfSmintable): A character compares EQL. (bfCI): Ignore wildcard pattern variables. * boot/strap: Update cached Lisp translation.
2008-05-19 * boot/ast.boot: Cleanup.dos-reis1-1/+2
* boot/includer.boot: Likewise. * boot/parser.boot: Likewise. * boot/pile.boot: Likewise. * boot/scanner.boot: Likewise. * boot/tokens.boot: Likewise. * boot/translator.boot: Likewise.
2008-05-08 * boot/translator.boot (translateToplevel): Split out of bpOutItem.dos-reis1-2/+2
(maybeExportDecl): New.
2008-04-30 * boot/parser.boot (bpExportItemList): New.dos-reis1-1/+1
(bpExports): Likewise. (bpModule): Use it. * boot/ast.boot (bfCreateDef): Tidy. * boot/strap: Update cached Lisp translation.
2008-04-23 * boot/ast.boot: Tidy.dos-reis1-1/+1
* boot/includer.boot: Likewise. * boot/parser.boot: Likewise. * boot/pile.boot: Likewise. * boot/scanner.boot: Likewise. * boot/tokens.boot: Likewise. * boot/translator.boot: Likewise. * boot/strap: Update Lisp translation. * lisp/core.lisp.in: Tidy.
2008-04-22Update cached Lisp translationdos-reis1-5/+5
2008-02-04 * boot/translator.boot (translateToplevelExpression): New.dos-reis1-82/+60
(bpOutItem): Use it. * boot/ast.boot (needsPROG): New. (shoeCompTran): Use it. Tidy. (bfMain): Define cache variables before functions manipulating them. * boot/strap/: Update cached Lisp translations. * interp/g-timer.boot: Use assignment instead of SETANDFILEQ at toplevel. * interp/i-syscmd.boot: Likewise. * interp/pf2atree.boot: Likewise. * interp/trace.boot: Likewise.
2008-01-28 * boot/Makefile.pamphlet: Remove.dos-reis1-0/+626
* boot/translator.boot: New. * boot/translator.boot: Remove. * boot/tokens.boot: New. * boot/tokens.boot.pamphlet: Remove. * boot/scanner.boot: New. * boot/scanner.boot.pamphlet: Remove. * boot/pile.boot: New. * boot/pile.boot.pamphlet: Remove. * boot/parser.boot: New. * boot/parser.boot.pamphlet: New. * boot/initial-env.lisp: New. * boot/initial-env.lisp.pamphlet: Remove. * boot/includer.boot: New. * boot/includer.boot.pamphlet: Remove. * boot/ast.boot: New. * boot/ast.boot.pamphlet: Remove.