Commit Graph

325 Commits (c8e4d9fa692b15a0457efebb3d646a5d81462ebb)

Author SHA1 Message Date
John Benediktsson 4a144e5ea7 more test IN: cleanup. 2018-02-15 08:45:08 -08:00
Doug Coleman 15b13870ae peg.ebnf: Clean up EBNF: syntax.
The syntax for an EBNF parser is now ``EBNF: identifier string``. The
inline syntax went from [EBNF ...  EBNF] to EBNF[[ ]], EBNF[=[ ]=], etc.

<EBNF looked for a main word, but this functionality is just EBNF[[ ]]
now.
2017-08-05 22:23:57 -05:00
Björn Lindqvist 20711a0fd3 Adding escaping to CHAR: " -> CHAR: \"
It is not necessary to escape the " character, but it doesn't hurt and
is necessary for syntax-highlighting (FUEL) to work correctly.
2016-09-04 06:40:43 +02:00
John Benediktsson 8aadd38071 peg.javascript.tokenizer: rename escape rules slightly. 2016-06-12 06:52:23 -07:00
John Benediktsson e7fa92baac peg.javascript.tokenizer: support hex and unicode escapes. 2016-06-12 06:41:59 -07:00
John Benediktsson 29a2a25954 peg.javascript: add some other escapes since we're doing this. :-) 2016-06-11 15:22:20 -07:00
catb0t 385cf35e7f peg.javascript.tokenizer: allow escaped quotes in strings
Previously, the tokenizer didn't understand
escaped quotes in string literals. Also added was
a test to ensure the escaping works.
2016-06-11 15:17:50 -07:00
John Benediktsson 59caf874a3 syntax: removing #! as a comment character.
We don't need two types of comments and shebang (#!) is handled
natively by the lexer, so the original reason for #! is not valid.
2015-09-09 18:28:08 -07:00
Doug Coleman 1fcf96cada factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon. 2015-07-25 22:59:56 -07:00
John Benediktsson b5a671cd88 peg: replace uses of digits>integer with string>number. 2015-07-19 19:18:47 -07:00
Doug Coleman 9fb130791b factor: trim more whitespace from #! comments 2015-07-18 20:36:42 -07:00
Doug Coleman 4ec2311406 factor: Trim whitespace after ! comments and a few USING: lines that got skipped before. 2015-07-18 20:14:22 -07:00
John Benediktsson cd6ccdadc3 peg: use escaped character classes. 2015-07-16 08:44:59 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
John Benediktsson 02ac0662e7 more doc type fixes. 2014-05-24 17:16:26 -07:00
John Benediktsson c8732657b7 Cleanup more lint warnings. 2011-10-16 13:01:58 -07:00
Slava Pestov b6a0324be6 peg: fix unit test failures 2009-10-19 06:01:20 -05:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -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 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Jose A. Ortega Ruiz 408d592c3e FUEL: Font lock and no indentation for EBNF: ... ;EBNF forms. 2009-04-01 05:03:28 +02:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
U-SLAVA-DFB8FF805\Slava 0eee4f89d4 Mess around with tags 2008-11-17 06:59:17 -06:00
Slava Pestov 736974fe15 Fix PEG tests for multiline changes 2008-09-25 03:37:48 -05:00
Slava Pestov aea0fed14c Fixing basis -> extra dependencies 2008-09-05 19:29:14 -05:00
Slava Pestov 724fae53e9 Move web framework to basis 2008-09-04 18:15:13 -05:00
Doug Coleman 3dc4de4389 new accessors 2008-09-02 15:13:01 -05:00
Doug Coleman 978adcf90c new accessors 2008-08-30 21:59:46 -05:00
Doug Coleman dad17acaf3 new accessors 2008-08-30 14:06:10 -05:00
Slava Pestov 59f902f673 Moving parts of extra/peg to basis 2008-08-22 23:04:24 -05:00
Slava Pestov 8b855b2445 Help lint fixes 2008-08-22 23:00:35 -05:00
Slava Pestov 40e926609a Fixing unit tests 2008-08-22 22:07:59 -05:00
Slava Pestov 3eb0476811 Add declaration 2008-08-22 18:09:38 -05:00
Slava Pestov 4cb64aaeb8 Fixing unit tests for eval word being moved 2008-07-29 00:05:01 -05:00
Chris Double 3f68fb4618 Fix regression where multiply defined ebnf rules didn't result in an error 2008-07-15 15:42:13 +12:00
Chris Double 539e697a08 Correct help-lint issues in pegs 2008-07-15 13:51:55 +12:00
Slava Pestov f7c69e0018 peg doesn't need combinators.lib 2008-07-11 17:27:47 -05:00
Chris Double 9fc2175403 peg refactorings 2008-07-11 11:37:02 +12:00
Chris Double 46b0df2631 Use || in peg choice code generation 2008-07-11 11:37:02 +12:00
Chris Double 51faed0945 Make pegs seq parser use short circuiting && 2008-07-11 11:37:02 +12:00
Chris Double b720bc16a8 Fix peg equals? method 2008-07-10 17:17:36 +12:00
Chris Double 2ed0d561ae Store peg rules by their id rather than word in left recursion handling 2008-07-10 13:56:07 +12:00
Chris Double 9e78bb70f2 packrat refactoring 2008-07-10 13:56:07 +12:00
Chris Double 4135f81514 Fix comment in peg eval-rule 2008-07-10 13:56:07 +12:00
Chris Double ec896eeba8 peg fixes 2008-07-10 13:56:06 +12:00
Chris Double d92c19f694 Remove delegate usage from pegs 2008-07-10 13:56:06 +12:00
Chris Double 7f4fe76698 More peg test fixes 2008-07-10 13:56:06 +12:00
Chris Double f3145c5961 [EBNF and EBNF: now return ast 2008-07-10 13:56:06 +12:00