Commit Graph

227 Commits (5cfd5ff2240946780c6c700cb6991bcef0e1b716)

Author SHA1 Message Date
John Benediktsson 3c54f12789 xml.data: eliminate unions in favor of maybe. 2012-07-12 19:00:12 -07:00
John Benediktsson ab9b1ef25d xml.traversal: use filter-as words. 2012-07-11 14:19:07 -07:00
Samuel Tardieu 46a00c4ce2 add tag-named-with-attr to xml.traversal 2011-12-16 16:07:01 -08:00
Joe Groff a8cb83cb4f xml.entities: remove USING: values 2011-11-29 12:21:08 -08:00
Joe Groff 1ef6fc03e6 remove values vocab 2011-11-28 21:26:33 -08:00
Doug Coleman 41e4c48647 combinators.smart: Fix reduce-outputs, rename quot*n to call-n, rewrite more macros as combinators. 2011-11-28 12:41:50 -08:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman 51c033a1f6 Fix all failures in the linux64 build email 2011-10-24 19:33:09 -07:00
John Benediktsson 80e1c8e3f2 Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed. 2011-10-18 13:19:39 -07:00
Doug Coleman f21fee3b73 Rename complete-effect to scan-effect 2011-10-17 10:25:27 -07:00
John Benediktsson 81714b8dc3 More lint cleanups. 2011-10-16 19:33:16 -07:00
John Benediktsson c8732657b7 Cleanup more lint warnings. 2011-10-16 13:01:58 -07:00
John Benediktsson 2b21f01918 Remove trim-whitespace in favor of [ blank? ] trim. 2011-10-14 13:22:28 -07:00
John Benediktsson 3207244c60 sequences: define ?first and ?second. 2011-10-13 12:53:46 -07:00
John Benediktsson 32111a1095 xml.char-classes: fix upper bound. 2011-10-02 15:30:41 -07:00
John Benediktsson 81e3bef507 xml: 25% (or more) faster.
Main performance improvements from:
- improving text? check performance
- fewer "spot get char>>" in skip-until
- better string matching (don't use circular-string sequence=)
2011-09-30 12:47:38 -07:00
Doug Coleman 76580da5d5 Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183.
Fixes #209.
2011-09-29 11:28:28 -07:00
John Benediktsson baac978767 Removing "to:" syntax from values.
Squashed commit of the following:

commit 18fef6bfa59f71dcb63b439f631c735848a9bbbb
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Mon Sep 26 11:02:26 2011 -0700

    vocabs.metadata: revert mistaken change.

commit 496b103b54034ea953882a039c08847d0eda0bb4
Author: John Benediktsson <mrjbq7@gmail.com>
Date:   Sun Sep 25 19:03:54 2011 -0700

    values: Removing "to:" syntax.
2011-09-26 11:08:26 -07:00
John Benediktsson 5bef322c6a xml.tests: fix encoding test for latin5. Fixes #144. 2011-09-19 16:28:18 -07:00
Slava Pestov 418ded51c1 xml.*: remove unnecessary dependencies on xml.writer 2011-09-01 22:31:45 -07:00
John Benediktsson 9f34c9c676 Spelling fixes to documentation. 2011-08-26 16:20:31 -07:00
John Benediktsson d58bc08aa0 Update code that did ">alist sort-" to just "sort-". 2011-04-07 09:01:21 -07:00
John Benediktsson 64e9e179b2 xml.writer: fix some docs. 2011-03-08 16:50:12 -08:00
Slava Pestov 09848ab420 xml.errors: split off xml.errors.debugger so that deployed apps that use XML are ~100kb smaller 2011-01-29 00:09:09 -05:00
Slava Pestov e837ebee81 xml.traversal: remove unused dependency on debugger 2011-01-29 00:07:56 -05:00
Keita Haga 48ec189c99 xml.data: insert a space after a comma in description of contained class 2011-01-28 11:48:07 +09:00
Keita Haga 60481f7871 xml: fix typo in docs 2011-01-14 22:11:08 +09:00
Jeremy Hughes 3806f02111 xml.traversal: tags-with-attr fix 2010-09-14 18:09:17 +12:00
Joe Groff dd71d20e4e xml.syntax: parse <-variable->s with parse-word instead of search so the no-word error gets properly raised when variable doesn't exist 2010-06-08 12:18:06 -07:00
Doug Coleman 01e14d1430 Fix using list in sequences.unrolled, keys/values was not appropriate in several locations 2010-05-21 15:28:05 -05:00
Doug Coleman bdecd564a3 Use keys/values where appropriate 2010-05-21 12:48:04 -05:00
Slava Pestov ea726f5680 Move remaining sequence operations from generalizations to sequences.generalizations where they belong 2010-05-18 18:36:47 -04:00
Slava Pestov 627295f094 Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO) 2010-05-06 17:21:02 -04:00
Daniel Ehrenberg aa6158b366 Changing require-when usages to the new syntax for require-when 2010-04-18 14:29:24 -05:00
Daniel Ehrenberg b4bf7b1d9b Making xml literal inverse behavior only load if inverse is loaded 2010-03-18 02:07:47 -04:00
Daniel Ehrenberg 512fe14e4e Merge branch 'bags' of git://github.com/littledan/Factor
Conflicts:

	basis/compiler/cfg/ssa/construction/tdmsc/tdmsc.factor
	basis/furnace/auth/auth.factor
	basis/stack-checker/backend/backend.factor
2010-03-16 13:28:00 -04:00
Joe Groff e7968ceffc mop up compiler errors from macosx load-all 2010-03-09 00:56:07 -08:00
Daniel Ehrenberg 6298203b4c Making all of basis and extra unambiguous for sets/namespaces 2010-02-26 16:28:38 -05:00
Slava Pestov 220dd88a2c Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Slava Pestov 7155447aed stack-checker: add inputs and outputs words, since 'infer (in>>|out>>) length' was coming up a lot 2010-01-15 08:04:14 +13:00
Slava Pestov df4fb4a3ee Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Doug Coleman a94774f8e8 add circular-while, optimize circular a bit 2009-12-06 17:20:46 -06:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Doug Coleman b71d86a1dc update more 8bit encoding usages 2009-11-12 18:36:47 -06:00
Doug Coleman aec676edec use surround/glue instead of 3append 2009-11-12 03:01:09 -06:00
Joe Groff 3fbe722561 Merge branch 'master' of http://factorcode.org/git/factor
Conflicts:
	basis/locals/locals.factor
	basis/peg/peg.factor
	extra/infix/infix.factor
2009-10-28 16:17:24 -05:00
Joe Groff b0362f8011 fix help-lint failures 2009-10-28 14:05:23 -05:00
Doug Coleman 7ce4b746e5 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Slava Pestov 951e3e9c83 delete-nth -> remove-nth! 2009-10-27 23:41:57 -05:00
Joe Groff 935c0797c3 update existing code for [let change 2009-10-27 22:05:37 -05:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Slava Pestov 7c83ccf6b0 xml.syntax: fix help lint 2009-09-23 17:56:19 -05:00
Doug Coleman a4524874f4 remove <" from multiline tests 2009-09-23 16:24:32 -05:00
Doug Coleman faf54ce8e2 fix yet more multiline tests 2009-09-23 12:57:37 -05:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Bruno Deferrari d8434ceed2 basis.xml: A fix for <pull-xml> (calls init-parser so that the spot variable is binded) 2009-07-22 20:49:57 -03:00
Bruno Deferrari 8bf389e9b5 basis.xml: Add test to check that pull-event doesn't raise an exception when called on a pull-xml object 2009-07-22 20:48:38 -03:00
Doug Coleman 407377fc98 rename peek -> last and update all usages 2009-05-25 16:38:33 -05:00
Slava Pestov 66a9416473 Update documentation for stricter vocabulary search path semantics 2009-05-16 00:29:21 -05:00
Slava Pestov b62630b5ac Updating code in basis and extra for stricter vocab search path semantics 2009-05-14 23:23:06 -05:00
Slava Pestov a366909c25 Removing slip usage from basis 2009-05-10 15:28:22 -05:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Slava Pestov a4d48a1cd4 xml.writer: don't write arrays to output-stream 2009-04-20 03:28:03 -05:00
Slava Pestov 3b40334ccd xml: fix compile warnings in tests 2009-04-20 03:27:52 -05:00
Slava Pestov 99b8400e56 Documentation updates 2009-04-06 03:00:46 -05:00
Slava Pestov 0a8fb3e5f3 xml.syntax: update for syntax change 2009-03-22 21:38:06 -05:00
Slava Pestov 5408191724 xml: update XML-NS: for define-memoized stack effect change and get all unit tests to pass 2009-03-22 18:37:28 -05:00
Slava Pestov 55bb5500bd Merge branch 'master' of git://factorcode.org/git/factor 2009-03-21 03:39:51 -05:00
Daniel Ehrenberg 87b90cf371 Fixing XML char classes 2009-03-21 03:39:30 -05:00
Slava Pestov 3de9723d22 Update unicode.categories.syntax 2009-03-21 03:32:10 -05:00
Slava Pestov ea60f8ae93 Changing : foo ; parsing to SYNTAX: foo ; 2009-03-21 01:27:50 -05:00
Daniel Ehrenberg 62638fb4d3 Moving unicode.syntax to unicode.categories.syntax; documenting and modifying syntax 2009-03-21 01:11:45 -05:00
Daniel Ehrenberg a282789910 XML missing encoding error 2009-03-18 18:32:34 -05:00
Daniel Ehrenberg fec49cb616 More expository XML docs 2009-03-16 22:29:38 -05:00
Daniel Ehrenberg 7a0ce748df Cleaning up XML to make : string>xml <string-reader> read-xml ; 2009-03-16 18:28:15 -05:00
Slava Pestov c8d5e98898 Fix conflicts 2009-02-26 03:12:19 -06:00
Slava Pestov 4426526252 Fixing some things I broke 2009-02-25 23:30:30 -06:00
Slava Pestov ce1bc1d6ed Fixing conflicts from stack checker changes 2009-02-24 01:21:10 -06:00
Slava Pestov 421ee726b8 Merge branch 'master' into new_ui 2009-02-16 21:22:12 -06:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
Slava Pestov 4a639033fa Merge branch 'master' into new_ui 2009-02-15 21:06:55 -06:00
Slava Pestov e1866ff0e4 Fix xml.writer unit test 2009-02-15 20:11:36 -06:00
Slava Pestov 6b99b04531 Add vocab: for vocab-relative paths 2009-02-15 19:53:21 -06:00
Slava Pestov 056e7aa442 Merge branch 'master' into new_ui 2009-02-13 18:12:35 -06:00
Daniel Ehrenberg c6680eee60 Making xml-undo words private; adding bytes>xml word 2009-02-13 15:10:34 -06:00
Slava Pestov e3f6ee0792 Merge branch 'master' into new_ui 2009-02-09 01:17:07 -06:00
Daniel Ehrenberg 3e5ec77439 Splitting up basis/wrap into three vocabs 2009-02-09 01:12:32 -06:00
Slava Pestov dd9cf39467 Fix conflict in libc 2009-02-06 05:10:41 -06:00
Slava Pestov ae0da1cf98 Fix conflict 2009-02-05 22:29:15 -06:00
Daniel Ehrenberg 51b5973b0e Documenting XML interpolation inverse 2009-02-05 21:26:40 -06:00
Daniel Ehrenberg 86c3481f12 Moving XML vocabularies around 2009-02-05 21:17:03 -06:00
Daniel Ehrenberg b9839b0c32 XML literals work with inverse now 2009-02-05 14:21:36 -06:00
Daniel Ehrenberg fa0d5de2e4 Speeding up xml.literals by 3x using code generation 2009-02-04 17:29:35 -06:00
Daniel Ehrenberg c7a070ba8e Fixing typo in xml.dispatch 2009-02-04 13:25:51 -06:00
Daniel Ehrenberg 292ebd4a4c Fixing xml.dispatch 2009-02-04 12:34:18 -06:00
Daniel Ehrenberg 009ea7ad45 Fixing bug in XML where prolog isn't considered; whenever you write XML, the encoding is listed as UTF-8. 2009-02-04 12:32:47 -06:00
Slava Pestov feb5688296 Merge branch 'master' into new_ui 2009-02-04 04:45:33 -06:00
Daniel Ehrenberg babe9bb2fd Making xml.dispatch compile 2009-02-04 01:25:48 -06:00
Daniel Ehrenberg 246c4bb13c Fixing encodings/XML 2009-02-03 17:32:05 -06:00