<div dir="ltr">please reply!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 19, 2017 at 1:47 AM, Rishi Bhatt <span dir="ltr"><<a href="mailto:bhatt.rishi062@gmail.com" target="_blank">bhatt.rishi062@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi,<br></div>Well i am currently understanding how to implement a parser,so i am starting with the simple ones first i.e umask.c,readahead.c,mount.c.<br><br></div>What i know about the implementation of parser:<br></div>What we do in these are use the tcb struct(u_arg[]) to get the values that are passed in as arguments,i am not going into that detail for now (or should i go?),i guess for now i should just accept it.<br><br></div>Now taking an example of a parser lets say mount.c:<br></div>arguments of mount:source,target,<wbr>filesystem,mountflags and data.<br><br></div>So if i am implementing a mount parser i have to get the values that is being passed in this syscall that i can get from registers(somehow),also the return value and error values.Also we have to consider printing the appropriate things with appropriate wrappers like if we are printing source and target in mount.c we are using printpath and if address ,it is prinnted by printaddr and etc.<br><br></div><div>And we have to first know what can be value of a specific parameter in different condition,like in mount.c we are printing "mount_filesystem" as a address or as string.(ignore_type)<br><br></div>So this should be the info to start implementing a parser?<br></div><br></div>So please fill me up with more detail if i am missing something or i am interpreting something in a wrong way,and if possible can you give me some small parser related thing to implement so i can understand it better.So i can try to start implementing a parser.<br><br></div>P.S: so that i can write something in my gsoc proposal. :)<br></div>
</blockquote></div><br></div>