Yukihiro Matsumoto
|
daee2e5ad3
|
preserve toplevel local variable info in mrbc_context
|
2012-07-03 21:26:05 +09:00 |
|
Yukihiro Matsumoto
|
39689441e7
|
add context arg to mrb_parser_parse()
|
2012-07-03 21:13:10 +09:00 |
|
Yukihiro Matsumoto
|
65096c4c1b
|
add context to parser, that would hold local variable info, filename, and line number. mrbc_context argument has been added to mrb_parse_xxx() functions. Normally, you just to need to add NULL (or 0) to the last argument of the above functions.
|
2012-07-03 20:59:07 +09:00 |
|
Yukihiro Matsumoto
|
ce49d90dc8
|
modify compiler API; replace mrb_compie_xxx with mrb_load_xxx() that combines compilatoin and execution
|
2012-07-03 15:26:11 +09:00 |
|
Yukihiro Matsumoto
|
97b1c57600
|
constify parser input strings
|
2012-07-03 14:28:19 +09:00 |
|
Yukihiro Matsumoto
|
3be4e91376
|
remove size_t from parser
|
2012-07-03 14:27:34 +09:00 |
|
Yukihiro Matsumoto
|
4a98d5c8fd
|
allow string interpolation in symbols like :"a=#{15}"
|
2012-06-28 23:35:17 +09:00 |
|
Yukihiro Matsumoto
|
4fd932548e
|
allow :"text" form; close #321
|
2012-06-28 23:28:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
50f38a7df3
|
Merge pull request #330 from monaka/pr-fix-parser-y-to-supress-warning-array-subscript
Supress "warning: array subscript has type ‘char’"
|
2012-06-26 22:43:52 -07:00 |
|
Masaki Muranaka
|
cd5476c6ae
|
Supress "warning: array subscript has type ‘char’"
|
2012-06-27 13:19:32 +09:00 |
|
Masaki Muranaka
|
2042684b6e
|
Use sizeof to get char array sizes.
|
2012-06-27 13:01:22 +09:00 |
|
Yukihiro Matsumoto
|
f89215c7d2
|
parser_dump: local variable dump condition updated
|
2012-06-16 17:36:47 +09:00 |
|
Junji Sawada
|
2401a175a3
|
Fix to show ensure node
|
2012-06-16 01:30:59 +09:00 |
|
Yukihiro Matsumoto
|
76f7aecff3
|
use ENABLE/DISABLE instead of INCLUDE for configuration macro names
|
2012-06-15 15:34:49 +09:00 |
|
Masaki Muranaka
|
f564ec7e82
|
Remove some redundant code.
|
2012-06-15 00:56:00 +09:00 |
|
Masaki Muranaka
|
df55efd373
|
Fix typo in parser around tLEQ
|
2012-06-14 17:38:47 +09:00 |
|
Yukihiro Matsumoto
|
bd309f555a
|
should not ignore variable-less rest parameter
|
2012-06-14 05:13:38 +09:00 |
|
Yukihiro Matsumoto
|
13a542d48d
|
zsuper should respect block given; close #185
|
2012-06-11 15:55:04 +09:00 |
|
Yukihiro Matsumoto
|
8f020f28c6
|
parser_dump: no print "local variables" if no local variables
|
2012-06-11 14:50:51 +09:00 |
|
Jon
|
30b6507817
|
Refactor hardcoded PARSER_DUMP macro
|
2012-06-03 18:58:19 -04:00 |
|
Yukihiro Matsumoto
|
f24a52b04a
|
remove mrb_open NULL check for small test programs. They are only for proof-on-concept test, not production code. Adding precise checks are not needed for those code
|
2012-06-04 01:46:04 +09:00 |
|
Jon
|
2fff59dc86
|
Check mrb_open return value for NULL
|
2012-06-03 11:11:35 -04:00 |
|
Yukihiro Matsumoto
|
d6337e48ad
|
rest argument offset might be -1 that means empty
|
2012-06-01 23:54:43 +09:00 |
|
Yukihiro Matsumoto
|
dae33d3f66
|
column position adjustment was wrong
|
2012-05-28 15:51:07 +09:00 |
|
Yukihiro Matsumoto
|
cf8f429624
|
ignore error nodes (with node_begin initialization)
|
2012-05-28 15:50:30 +09:00 |
|
Yukihiro Matsumoto
|
c14e440897
|
column adjustment was wrong for pushed back characters
|
2012-05-28 08:50:10 +09:00 |
|
Masamitsu MURASE
|
2f4ef95ae6
|
Add 'ifndef/endif' to avoid conflict of 'TRUE' definition.
|
2012-05-27 23:05:43 +09:00 |
|
Yukihiro Matsumoto
|
34d9043c81
|
parser->colum number was wrong
|
2012-05-24 09:35:42 +09:00 |
|
Yukihiro Matsumoto
|
4f012f578f
|
remove warning for open paren after space
|
2012-05-23 12:59:46 +09:00 |
|
Yukihiro Matsumoto
|
d26100d529
|
allow empty paren as a valid expr
|
2012-05-23 12:05:30 +09:00 |
|
Yukihiro Matsumoto
|
1dbfc39997
|
use mrb's allocator; thanks to @mitchblank
|
2012-05-21 17:11:38 +09:00 |
|
Yukihiro Matsumoto
|
0bba67626e
|
waring refactoring; print line number
|
2012-05-20 22:46:10 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ac31b58fe8
|
Merge pull request #169 from mitchblank/cplusplus
Part 1 of C++ compilability
|
2012-05-20 06:09:31 -07:00 |
|
Kazuki Tsujimoto
|
df6f917df8
|
Fix wrong cast
|
2012-05-20 16:23:34 +09:00 |
|
Mitchell Blank Jr
|
1ad7a1e3d8
|
C++ compilability: don't use "node" as both a type and a member
I originally solved this by renaming the "node" type to "node_t",
but Matz didn't like that. He suggested renaming the member
variable "nd" instead:
https://github.com/mruby/mruby/pull/144#issuecomment-5743153
|
2012-05-20 00:19:38 -07:00 |
|
Kazuki Tsujimoto
|
db196c5128
|
Add cast to remove "cast from pointer to integer of different size" warning
|
2012-05-20 14:41:50 +09:00 |
|
Yukihiro Matsumoto
|
2ed31892a8
|
should initialize p->sterm every parse time
|
2012-05-19 17:52:41 +09:00 |
|
Yukihiro Matsumoto
|
6f6c270bb1
|
mirb should detect end of expression smarter
|
2012-05-19 16:15:11 +09:00 |
|
Yukihiro Matsumoto
|
aeca23166b
|
remove dependency to node.h and pool.h
|
2012-05-19 15:52:47 +09:00 |
|
Yukihiro Matsumoto
|
cb8b4691f0
|
p->tree may be NULL; close #161
|
2012-05-19 15:37:41 +09:00 |
|
Yukihiro Matsumoto
|
e306bfaf94
|
failed to initialize source string
|
2012-05-18 14:23:40 +09:00 |
|
Yukihiro Matsumoto
|
219162117a
|
move compile.h to mruby/compile.h
|
2012-05-18 12:54:23 +09:00 |
|
Yukihiro Matsumoto
|
ec6c6df995
|
yywarn should use warn_buffer not error_buffer
|
2012-05-18 11:17:07 +09:00 |
|
Yukihiro Matsumoto
|
5223c0a6ac
|
remove mrb_parse_nstring_ext; use mrb_parser_new() then set p->capture_error = 1; then call mrb_parser_parse(); see tool/mirb/mirb.c
|
2012-05-18 11:07:11 +09:00 |
|
Yukihiro Matsumoto
|
61d8bb132e
|
keep toplevel local variables; close #133
|
2012-05-18 11:04:36 +09:00 |
|
Yukihiro Matsumoto
|
a18fb01b03
|
new API for parser
|
2012-05-18 11:03:43 +09:00 |
|
Yukihiro Matsumoto
|
434ed1ed7c
|
compile error should contain line number
|
2012-05-17 23:46:55 +09:00 |
|
Yukihiro Matsumoto
|
0bae9c505c
|
print line number in compile error messages
|
2012-05-17 19:09:50 +09:00 |
|
Yukihiro Matsumoto
|
89e31b5838
|
too many line count in nextc()
|
2012-05-17 19:09:29 +09:00 |
|
Yukihiro Matsumoto
|
490fa45298
|
add cast to remove warning; close #154
|
2012-05-17 16:38:37 +09:00 |
|